[Python-checkins] cpython: Issue #14605: Insert to the front of sys.meta_path, don't append.

brett.cannon python-checkins at python.org
Fri Apr 27 20:02:42 CEST 2012


http://hg.python.org/cpython/rev/c18256de00bb
changeset:   76578:c18256de00bb
user:        Brett Cannon <brett at python.org>
date:        Fri Apr 27 13:52:55 2012 -0400
summary:
  Issue #14605: Insert to the front of sys.meta_path, don't append.

files:
  Lib/test/test_threaded_import.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
--- a/Lib/test/test_threaded_import.py
+++ b/Lib/test/test_threaded_import.py
@@ -126,7 +126,7 @@
 
     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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list