diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-13 06:29:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 06:29:59 (GMT) |
commit | 3d1c080591910c9c1ee80e5465ce7c91b67c907d (patch) | |
tree | 73ed1543305b638772713e4440565adf7b49baea /Lib/test/test_importlib/test_api.py | |
parent | 536af65e96490689c4d2eccc0afc3323f5763ff8 (diff) | |
download | cpython-3d1c080591910c9c1ee80e5465ce7c91b67c907d.zip cpython-3d1c080591910c9c1ee80e5465ce7c91b67c907d.tar.gz cpython-3d1c080591910c9c1ee80e5465ce7c91b67c907d.tar.bz2 |
gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653)
(cherry picked from commit 09243b898a13f3f61e275c1031143d1225e70916)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_importlib/test_api.py')
-rw-r--r-- | Lib/test/test_importlib/test_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py index 1f8f7c0..1beb783 100644 --- a/Lib/test/test_importlib/test_api.py +++ b/Lib/test/test_importlib/test_api.py @@ -395,7 +395,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) |