mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #14605: Insert to the front of sys.path_hooks instead of appending.
This commit is contained in:
parent
4fe29c9657
commit
8923a4d4c5
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue