diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 11:08:32 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 11:08:32 +0000 |
commit | 5d07e3a5e95dc2e53c2cee50f59a22aeabfa8826 (patch) | |
tree | 8ce50f56978b2711e13fd85282bed3c03395552d /Lib/test/threaded_import_hangers.py | |
parent | 972c532eaf1453e2b0f8fd70e4ef934ac50b3853 (diff) | |
download | cpython-5d07e3a5e95dc2e53c2cee50f59a22aeabfa8826.tar.gz |
Fix ResourceWarning in Lib/test/threaded_import_hangers.py
Diffstat (limited to 'Lib/test/threaded_import_hangers.py')
-rw-r--r-- | Lib/test/threaded_import_hangers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/threaded_import_hangers.py b/Lib/test/threaded_import_hangers.py index d7508741d3..adf03e31ff 100644 --- a/Lib/test/threaded_import_hangers.py +++ b/Lib/test/threaded_import_hangers.py @@ -29,7 +29,7 @@ class Worker(threading.Thread): for name, func, args in [ # Bug 147376: TemporaryFile hung on Windows, starting in Python 2.4. - ("tempfile.TemporaryFile", tempfile.TemporaryFile, ()), + ("tempfile.TemporaryFile", lambda: tempfile.TemporaryFile().close(), ()), # The real cause for bug 147376: ntpath.abspath() caused the hang. ("os.path.abspath", os.path.abspath, ('.',)), |