Closed Bug 1191254 Opened 10 years ago Closed 10 years ago

Empty directories left in /tmp when launching tests

Categories

(Testing :: mozregression, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jonathan.pigree, Assigned: jonathan.pigree)

Details

Attachments

(1 file)

49 bytes, text/x-github-pull-request
parkouss
: review+
Details | Review
On commit 33b71e7821f20ff6a1a8bb1f801fef4c44e0b447. If I do : python setup.py tests It creates directories into /tmp and do not delete them.
Good catch, thanks for reporting this!
i
Assignee: nobody → jonathan.pigree
Okay. I assigned it to myself.
The empty dirs come from three test cases: -> TestBisector -> TestInboundHandler -> TestMozRunnerLauncher
I continue my investigations.
Attached file PR
Attachment #8643762 - Flags: review?(j.parkouss)
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 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+
Merged!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: