Issue #14605: Insert to the front of sys.path_hooks instead of appending.

This commit is contained in:
Brett Cannon 2012-04-24 22:03:46 -04:00
parent 4fe29c9657
commit 8923a4d4c5
3 changed files with 5 additions and 5 deletions

View file

@ -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