[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #8622 [Stem]: Test failing to clean up /tmp resources



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs