Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c6ea1c

Browse files
committed
Issue #14605: Insert to the front of sys.meta_path, don't append.
1 parent c8287ef commit 3c6ea1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_threaded_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_parallel_module_init(self):
126126

127127
def test_parallel_meta_path(self):
128128
finder = Finder()
129-
sys.meta_path.append(finder)
129+
sys.meta_path.insert(0, finder)
130130
try:
131131
self.check_parallel_module_init()
132132
self.assertGreater(finder.numcalls, 0)

0 commit comments

Comments
 (0)