Commit 3c6ea1c1 authored by Brett Cannon's avatar Brett Cannon

Issue #14605: Insert to the front of sys.meta_path, don't append.

parent c8287efe
...@@ -126,7 +126,7 @@ class ThreadedImportTests(unittest.TestCase): ...@@ -126,7 +126,7 @@ class ThreadedImportTests(unittest.TestCase):
def test_parallel_meta_path(self): def test_parallel_meta_path(self):
finder = Finder() finder = Finder()
sys.meta_path.append(finder) sys.meta_path.insert(0, finder)
try: try:
self.check_parallel_module_init() self.check_parallel_module_init()
self.assertGreater(finder.numcalls, 0) self.assertGreater(finder.numcalls, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment