summaryrefslogtreecommitdiff
path: root/astroid/tests/unittest_builder.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-10-26 23:14:39 -0400
committerCeridwen <ceridwenv@gmail.com>2015-10-26 23:14:39 -0400
commitcb5cb364961e952771653bda8d77090fa55d88bf (patch)
tree51e27a7efd0ad0136c2b0d4ecfa957fcbc930f51 /astroid/tests/unittest_builder.py
parent24a7678a2afa54a0898b9d7c9525a1907c3e6eca (diff)
downloadastroid-git-cb5cb364961e952771653bda8d77090fa55d88bf.tar.gz
Fix simple test failures
Diffstat (limited to 'astroid/tests/unittest_builder.py')
-rw-r--r--astroid/tests/unittest_builder.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/astroid/tests/unittest_builder.py b/astroid/tests/unittest_builder.py
index 27ba685b..87fadab3 100644
--- a/astroid/tests/unittest_builder.py
+++ b/astroid/tests/unittest_builder.py
@@ -296,9 +296,9 @@ class BuilderTest(unittest.TestCase):
# check property has __init__
pclass = builtin_ast['property']
self.assertIn('__init__', pclass)
- self.assertIsInstance(builtin_ast['None'], nodes.Const)
- self.assertIsInstance(builtin_ast['True'], nodes.Const)
- self.assertIsInstance(builtin_ast['False'], nodes.Const)
+ self.assertIsInstance(builtin_ast['None'], nodes.AssignName)
+ self.assertIsInstance(builtin_ast['True'], nodes.AssignName)
+ self.assertIsInstance(builtin_ast['False'], nodes.AssignName)
if six.PY3:
self.assertIsInstance(builtin_ast['Exception'], nodes.ClassDef)
self.assertIsInstance(builtin_ast['NotImplementedError'], nodes.ClassDef)
@@ -514,8 +514,8 @@ class BuilderTest(unittest.TestCase):
lclass = list(astroid.igetattr('A'))
self.assertEqual(len(lclass), 1)
lclass = lclass[0]
- self.assertIn('assign_type', lclass.locals)
- self.assertIn('type', lclass.locals)
+ self.assertIn('assign_type', lclass.external_attrs)
+ self.assertIn('type', lclass.external_attrs)
def test_augassign_attr(self):
builder.parse("""
@@ -535,7 +535,7 @@ class BuilderTest(unittest.TestCase):
a.custom_attr = 0
'''
builder.parse(code)
- nonetype = nodes.Const(None)
+ nonetype = nodes.Singleton(None)
self.assertNotIn('custom_attr', nonetype.locals)
self.assertNotIn('custom_attr', nonetype.instance_attrs)
nonetype = nodes.Dict()