[tor-bugs] #8622 [Stem]: Test failing to clean up /tmp resources
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Apr 7 04:33:56 UTC 2013
#8622: Test failing to clean up /tmp resources
--------------------------+-------------------------------------------------
Reporter: atagar | Owner: atagar
Type: defect | Status: new
Priority: trivial | Milestone:
Component: Stem | Version:
Keywords: testing easy | Parent:
Points: | Actualpoints:
--------------------------+-------------------------------------------------
Comment(by ashishnitinpatil):
In stem/runner.py line 286 - self._test_dir = tempfile.mktemp("-stem-
integ")
Should it not be mkstemp rather than mktemp?
Also, would running a os.rmdir(tempfile.gettempdir()) be sufficient after
being done with the tests?
Also, would not tempfile.TemporaryFile() (Deletes the temp files
automatically) be a better thing to do rather than mkstemp?
Or do we need the files later for some other tests?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8622#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list