diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-19 13:26:15 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-19 21:40:08 +0200 |
| commit | 11722b99525122ca7323fddc8b5791085b179399 (patch) | |
| tree | b83179b5ca836a19fe7b6be3461e7ac614dc54ba /tests/unittest_scoped_nodes.py | |
| parent | 24f9672270908b76c62448c7f02306deb5b366a4 (diff) | |
| download | astroid-git-11722b99525122ca7323fddc8b5791085b179399.tar.gz | |
Simplification because AstroidManager is a singleton/borg
Diffstat (limited to 'tests/unittest_scoped_nodes.py')
| -rw-r--r-- | tests/unittest_scoped_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittest_scoped_nodes.py b/tests/unittest_scoped_nodes.py index 287eaafd..1b376a31 100644 --- a/tests/unittest_scoped_nodes.py +++ b/tests/unittest_scoped_nodes.py @@ -39,7 +39,7 @@ from functools import partial import pytest -from astroid import builder, nodes, objects, scoped_nodes, test_utils, util +from astroid import MANAGER, builder, nodes, objects, scoped_nodes, test_utils, util from astroid.bases import BUILTINS, BoundMethod, Generator, Instance, UnboundMethod from astroid.exceptions import ( AttributeInferenceError, @@ -1389,7 +1389,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase): A1 = astroid.getattr("A1")[0] B1 = astroid.getattr("B1")[0] C1 = astroid.getattr("C1")[0] - object_ = builder.MANAGER.astroid_cache[BUILTINS].getattr("object")[0] + object_ = MANAGER.astroid_cache[BUILTINS].getattr("object")[0] self.assertEqual( cm.exception.mros, [[B1, C1, A1, object_], [C1, B1, A1, object_]] ) |
