aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/threaded_import_hangers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/threaded_import_hangers.py')
-rw-r--r--Lib/test/threaded_import_hangers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/threaded_import_hangers.py b/Lib/test/threaded_import_hangers.py
index d7508741d3f..adf03e31ffd 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, ('.',)),