]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #14605: Insert to the front of sys.meta_path, don't append.
authorBrett Cannon <brett@python.org>
Fri, 27 Apr 2012 17:52:55 +0000 (13:52 -0400)
committerBrett Cannon <brett@python.org>
Fri, 27 Apr 2012 17:52:55 +0000 (13:52 -0400)
Lib/test/test_threaded_import.py

index 3faa1845e597867d0637de0e60369644ea00d62d..bb72ad405488bec91df9e1c307d045c797978eb5 100644 (file)
@@ -126,7 +126,7 @@ class ThreadedImportTests(unittest.TestCase):
 
     def test_parallel_meta_path(self):
         finder = Finder()
-        sys.meta_path.append(finder)
+        sys.meta_path.insert(0, finder)
         try:
             self.check_parallel_module_init()
             self.assertGreater(finder.numcalls, 0)