mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix ResourceWarning in Lib/test/threaded_import_hangers.py
This commit is contained in:
parent
14d8fe7de8
commit
5efe9d0865
1 changed files with 1 additions and 1 deletions
|
@ -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, ('.',)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue