diff options
author | Avram Lubkin <aviso@rockhopper.net> | 2023-02-12 12:21:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 18:21:26 +0100 |
commit | 55afe5de59b8aa3ee5fcbd98607ad90af17ca819 (patch) | |
tree | 0819a8bace1472853d95e5d5e10e4982b88c9a2b /tests/test_manager.py | |
parent | 3540baeb079481c5321d4936eb0f946aa7c6f755 (diff) | |
download | astroid-git-55afe5de59b8aa3ee5fcbd98607ad90af17ca819.tar.gz |
Replace and deprecate modutils.is_standard_module() (#2015)
Diffstat (limited to 'tests/test_manager.py')
-rw-r--r-- | tests/test_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_manager.py b/tests/test_manager.py index 312f446e..f90be5c8 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -22,7 +22,7 @@ from astroid.exceptions import ( AttributeInferenceError, ) from astroid.interpreter._import import util -from astroid.modutils import EXT_LIB_DIRS, is_standard_module +from astroid.modutils import EXT_LIB_DIRS, module_in_path from astroid.nodes import Const from astroid.nodes.scoped_nodes import ClassDef @@ -411,7 +411,7 @@ class ClearCacheTest(unittest.TestCase): # Generate some hits and misses ClassDef().lookup("garbage") - is_standard_module("unittest", std_path=["garbage_path"]) + module_in_path("unittest", "garbage_path") util.is_namespace("unittest") astroid.interpreter.objectmodel.ObjectModel().attributes() with pytest.raises(AttributeInferenceError): |