mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Another time avoiding a memory leak, also part of #1723
This commit is contained in:
@@ -84,8 +84,5 @@ def test_parser_cache_clear(Script):
|
||||
del parser_cache[script._inference_state.grammar._hashed][script.path]
|
||||
del script
|
||||
|
||||
import jedi
|
||||
jedi.parser_utils.get_cached_parent_scope.__closure__[0].cell_contents.clear()
|
||||
|
||||
gc.collect()
|
||||
assert module_id not in [id(m) for m in gc.get_referrers(tree.Module)]
|
||||
|
||||
Reference in New Issue
Block a user