[New-bugs-announce] [issue7443] test.support.unlink issue on Windows platform
Andrew Svetlov
report at bugs.python.org
Sat Dec 5 16:20:04 CET 2009
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
On Windows there are tiny delay between call to os.unlink and real file
removing. Periodically it leads to unittest crashes in cases like this:
test.support.unlink(filename)
f = open(filename, 'wb')
Proposed solution: wait in support.unlink for end of deletion asking
os.stat for removed file (only if os.name == 'nt', of course).
Also test.test_linecache:LineCacheTests.test_checkcache should be fixed
- this one miss to close last opened file and Windows cannot remove it.
Both patches for trunk and py3k is attached.
----------
components: Tests, Windows
files: python3.patch
keywords: patch
messages: 95991
nosy: asvetlov
severity: normal
status: open
title: test.support.unlink issue on Windows platform
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15454/python3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7443>
_______________________________________
More information about the New-bugs-announce
mailing list