Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830d7d2 commit 41bbd82Copy full SHA for 41bbd82
1 file changed
Lib/test/test_threaded_import.py
@@ -230,7 +230,8 @@ def target():
230
import random
231
t = threading.Thread(target=target)
232
t.start()
233
- t.join()"""
+ t.join()
234
+ t = None"""
235
sys.path.insert(0, os.curdir)
236
self.addCleanup(sys.path.remove, os.curdir)
237
filename = TESTFN + ".py"
@@ -241,6 +242,7 @@ def target():
241
242
self.addCleanup(rmtree, '__pycache__')
243
importlib.invalidate_caches()
244
__import__(TESTFN)
245
+ del sys.modules[TESTFN]
246
247
248
@reap_threads
0 commit comments