Skip to content

Commit ed8ce73

Browse files
authored
[TEMP] Looks like a cache issue indeed
1 parent 3f362cd commit ed8ce73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_pyrepl/_module_completer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
228228
spec = mymod.module_finder.find_spec(mymod.name, None)
229229
print("found spec:", spec)
230230
mymod.module_finder.invalidate_caches()
231-
spec = mymod.module_finder.find_spec(mymod.name, None)
232-
print("found spec after invalidate:", spec)
231+
not_cached_spec = mymod.module_finder.find_spec(mymod.name, None)
232+
print("found spec after invalidate:", not_cached_spec)
233233
if spec:
234234
print("1")
235235
assert spec.submodule_search_locations and len(spec.submodule_search_locations) == 1

0 commit comments

Comments
 (0)