mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Try to fix a sporadic test failure from what is probably a caching race condition.
This commit is contained in:
parent
740fce0e38
commit
73def61edd
1 changed files with 1 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ class ImportTests(unittest.TestCase):
|
|||
|
||||
# Need to be able to load from current dir.
|
||||
sys.path.append('')
|
||||
importlib.invalidate_caches()
|
||||
|
||||
try:
|
||||
make_legacy_pyc(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue