gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653)

This commit is contained in:
Christian Heimes 2022-06-10 23:56:26 +02:00 committed by GitHub
parent cf730b595e
commit 09243b898a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 14 deletions

View file

@ -396,7 +396,7 @@ class InvalidateCacheTests:
def invalidate_caches(self):
self.called = True
key = 'gobledeegook'
key = os.path.abspath('gobledeegook')
meta_ins = InvalidatingNullFinder()
path_ins = InvalidatingNullFinder()
sys.meta_path.insert(0, meta_ins)