New submission from Tim Golden <[email protected]>:

test_linecache in the current py3k branch is failing on my WinXP machine with 
ERROR_SHARING_VIOLATION.
The attached trivial patch appears to fix the problem, altho' I'm unfamiliar
with the module in question so it may be that there's more to be done.

----------
files: test_linecache.py.patch
keywords: patch
messages: 103475
nosy: tim.golden
severity: normal
status: open
title: test_linecache failing in py3k r80169
Added file: http://bugs.python.org/file16970/test_linecache.py.patch

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8439>
_______________________________________
Index: test_linecache.py
===================================================================
--- test_linecache.py   (revision 80169)
+++ test_linecache.py   (working copy)
@@ -114,6 +114,7 @@
                 for index, line in enumerate(source):
                     self.assertEquals(line, getline(source_name, index + 1))
                     source_list.append(line)
+                source.close ()
 
         finally:
             support.unlink(source_name)
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to