[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2432: consistently use self.mktemp() to create a temporary directory in tests
Tahoe-LAFS
trac at tahoe-lafs.org
Tue May 26 18:15:15 UTC 2015
#2432: consistently use self.mktemp() to create a temporary directory in tests
------------------------+---------------------------
Reporter: daira | Owner: daira
Type: defect | Status: new
Priority: normal | Milestone: 1.11.0
Component: code | Version: 1.10.0
Resolution: | Keywords: tests cleanup
Launchpad Bug: |
------------------------+---------------------------
Comment (by daira):
The one thing I don't like about `mktemp()` is that the path it generates
is not deterministic, due to its use of `mkdtemp`
([https://twistedmatrix.com/trac/browser/tags/releases/twisted-15.2.0/twisted/trial/_synctest.py#L1221
implementation in Twisted v15.2.0]). What I actually want is
`os.path.dirname(os.path.dirname(self.mktemp())`, I think. So, maybe it
would be better to have a mixin to shorten that, and so that if we want to
change it, we can do so in only one place.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2432#comment:3>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list