This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_aifc doesn't clean up after itself
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: chris.jerdonek, ezio.melotti, python-dev, r.david.murray
Priority: normal Keywords: easy

Created on 2013-02-27 19:39 by chris.jerdonek, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg183175 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-02-27 19:39
test_aifc's AIFCLowLevelTest.test_write_aiff_by_extension() leaves a test file behind.  I'm not sure what other versions are affected.
msg183267 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-03-01 18:31
On Linux it looks OK.  Does it always happen?  Where is the file located?
msg183272 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-03-01 18:43
Similar to as I stated in issue 17315, you won't see it when using regrtest since regrtest creates and then deletes a temp working directory.

The file gets created and is left behind in the current working directory.  Try running using unittest, e.g.

./python.exe -m unittest test.test_aifc.AIFCLowLevelTest.test_write_aiff_by_extension
msg183277 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-03-01 19:10
New changeset 10909360a11d by Ezio Melotti in branch 'default':
#17312: unlink a file that test_aifc was leaving around.
http://hg.python.org/cpython/rev/10909360a11d
msg183278 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-03-01 19:11
Should be fixed now.
msg183279 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-03-01 19:16
Thanks.
History
Date User Action Args
2022-04-11 14:57:42adminsetgithub: 61514
2013-03-01 19:16:55chris.jerdoneksetmessages: + msg183279
2013-03-01 19:11:23ezio.melottisetstatus: open -> closed
messages: + msg183278

assignee: ezio.melotti
resolution: fixed
stage: needs patch -> resolved
2013-03-01 19:10:45python-devsetnosy: + python-dev
messages: + msg183277
2013-03-01 18:43:14chris.jerdoneksetmessages: + msg183272
2013-03-01 18:31:48ezio.melottisetnosy: + ezio.melotti
messages: + msg183267
2013-02-27 19:40:34chris.jerdoneksetcomponents: + Tests
2013-02-27 19:39:54chris.jerdonekcreate