Closed
Bug 1191254
Opened 10 years ago
Closed 10 years ago
Empty directories left in /tmp when launching tests
Categories
(Testing :: mozregression, defect)
Testing
mozregression
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jonathan.pigree, Assigned: jonathan.pigree)
Details
Attachments
(1 file)
On commit 33b71e7821f20ff6a1a8bb1f801fef4c44e0b447. If I do :
python setup.py tests
It creates directories into /tmp and do not delete them.
Comment 1•10 years ago
|
||
Good catch, thanks for reporting this!
| Assignee | ||
Comment 3•10 years ago
|
||
Okay. I assigned it to myself.
| Assignee | ||
Comment 4•10 years ago
|
||
The empty dirs come from three test cases:
-> TestBisector
-> TestInboundHandler
-> TestMozRunnerLauncher
| Assignee | ||
Comment 5•10 years ago
|
||
I continue my investigations.
| Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8643762 -
Flags: review?(j.parkouss)
| Assignee | ||
Comment 7•10 years ago
|
||
Okay. I finally have an hang of it. It seems to me that when pytests close, unlike nose it does not call the destructors (__del__). I saw this post which seems to convey my idea "http://stackoverflow.com/questions/15917502/python-file-objects-closing-and-destructors".
I submitted a PR and tell me what you think of it.
Comment 8•10 years ago
|
||
Comment on attachment 8643762 [details] [review]
PR
Wow, good finding. :) Thanks a lot for the work here!
Hm, it is not good that py.test does not respect that... However reading the link you gave I suspect at first we should have not relied on __del__ at all - for profile or runners.
Attachment #8643762 -
Flags: review?(j.parkouss) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•