diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2023-03-04 14:31:03 -0500 |
---|---|---|
committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2023-03-04 14:56:57 -0500 |
commit | 7aa2c3413086585558a8b75fb38f04d2c4054a25 (patch) | |
tree | 3c0b191d0ad02fc94918aae45c866aa8bb990d09 /tests | |
parent | 925910a8f2c9005a02597cfa2b830bf5a5eef9d8 (diff) | |
download | astroid-git-7aa2c3413086585558a8b75fb38f04d2c4054a25.tar.gz |
Clear context cache in AstroidManager.clear_cache()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_manager.py b/tests/test_manager.py index f90be5c8..9b9b24fe 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -430,6 +430,8 @@ class ClearCacheTest(unittest.TestCase): astroid.MANAGER.clear_cache() # also calls bootstrap() + self.assertEqual(astroid.context._INFERENCE_CACHE, {}) + # The cache sizes are now as low or lower than the original baseline cleared_cache_infos = [lru.cache_info() for lru in lrus] for cleared_cache, baseline_cache in zip( |