summaryrefslogtreecommitdiff
path: root/Lib/test/test_threaded_import.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-27 13:52:55 -0400
committerBrett Cannon <brett@python.org>2012-04-27 13:52:55 -0400
commit59ea49301f3b14d452d65da4c51759d4331f2f16 (patch)
treedaeba8d786cf326f2d38729a4689e1227b700948 /Lib/test/test_threaded_import.py
parentcb6d55d4d49ca2a3146f96ae695d92522fde7949 (diff)
downloadcpython-59ea49301f3b14d452d65da4c51759d4331f2f16.tar.gz
Issue #14605: Insert to the front of sys.meta_path, don't append.
Diffstat (limited to 'Lib/test/test_threaded_import.py')
-rw-r--r--Lib/test/test_threaded_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
index 3faa1845e5..bb72ad4054 100644
--- a/Lib/test/test_threaded_import.py
+++ b/Lib/test/test_threaded_import.py
@@ -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)