diff options
author | Brett Cannon <brett@python.org> | 2012-04-25 02:03:46 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-25 02:03:46 (GMT) |
commit | 8923a4d4c514a621b7f99ee0f3ebdde319aee0e9 (patch) | |
tree | e5e59afdd9843282a57a127398cf8eb04ee57fe2 /Lib/test/test_threaded_import.py | |
parent | 4fe29c9657d64e8e3301122c104b7ca8fd23c348 (diff) | |
download | cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.zip cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.tar.gz cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.tar.bz2 |
Issue #14605: Insert to the front of sys.path_hooks instead of appending.
Diffstat (limited to 'Lib/test/test_threaded_import.py')
-rw-r--r-- | 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 index 789920b..3faa184 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -145,7 +145,7 @@ class ThreadedImportTests(unittest.TestCase): def path_hook(path): finder.find_module('') raise ImportError - sys.path_hooks.append(path_hook) + sys.path_hooks.insert(0, path_hook) sys.meta_path.append(flushing_finder) try: # Flush the cache a first time |