mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[TEMP] Looks like a cache issue indeed
This commit is contained in:
parent
3f362cd93e
commit
ed8ce73838
1 changed files with 2 additions and 2 deletions
|
|
@ -228,8 +228,8 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
|
|||
spec = mymod.module_finder.find_spec(mymod.name, None)
|
||||
print("found spec:", spec)
|
||||
mymod.module_finder.invalidate_caches()
|
||||
spec = mymod.module_finder.find_spec(mymod.name, None)
|
||||
print("found spec after invalidate:", spec)
|
||||
not_cached_spec = mymod.module_finder.find_spec(mymod.name, None)
|
||||
print("found spec after invalidate:", not_cached_spec)
|
||||
if spec:
|
||||
print("1")
|
||||
assert spec.submodule_search_locations and len(spec.submodule_search_locations) == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue