diff options
Diffstat (limited to 'tests/unittest_nodes.py')
-rw-r--r-- | tests/unittest_nodes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py index a89bc679..b682cfd8 100644 --- a/tests/unittest_nodes.py +++ b/tests/unittest_nodes.py @@ -40,7 +40,7 @@ import astroid from astroid import Uninferable, bases, builder from astroid import context as contextmod from astroid import nodes, parse, test_utils, transforms, util -from astroid.const import BUILTINS, PY38_PLUS, PY310_PLUS, Context +from astroid.const import PY38_PLUS, PY310_PLUS, Context from astroid.exceptions import ( AstroidBuildingError, AstroidSyntaxError, @@ -473,18 +473,18 @@ class ImportNodeTest(resources.SysPathSetup, unittest.TestCase): self.assertTrue(isinstance(myos, nodes.Module), myos) self.assertEqual(myos.name, "os") self.assertEqual(myos.qname(), "os") - self.assertEqual(myos.pytype(), "%s.module" % BUILTINS) + self.assertEqual(myos.pytype(), "builtins.module") def test_from_self_resolve(self): namenode = next(self.module.igetattr("NameNode")) self.assertTrue(isinstance(namenode, nodes.ClassDef), namenode) self.assertEqual(namenode.root().name, "astroid.nodes.node_classes") self.assertEqual(namenode.qname(), "astroid.nodes.node_classes.Name") - self.assertEqual(namenode.pytype(), "%s.type" % BUILTINS) + self.assertEqual(namenode.pytype(), "builtins.type") abspath = next(self.module2.igetattr("abspath")) self.assertTrue(isinstance(abspath, nodes.FunctionDef), abspath) self.assertEqual(abspath.root().name, "os.path") - self.assertEqual(abspath.pytype(), "%s.function" % BUILTINS) + self.assertEqual(abspath.pytype(), "builtins.function") if sys.platform != "win32": # Not sure what is causing this check to fail on Windows. # For some reason the abspath() inference returns a different |