diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-10 11:38:19 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-10 11:38:19 +0100 |
commit | f2c75754dbaafbe2d9800eb8d3fc38383414dad1 (patch) | |
tree | e9107dab998704fca9dc4f0229be9cd5cdd64c7b /tests/unittest_objects.py | |
parent | baa58746a2c9e51b757c623c883a02151bda4265 (diff) | |
download | astroid-git-f2c75754dbaafbe2d9800eb8d3fc38383414dad1.tar.gz |
Remove Python 2 specific tests
Diffstat (limited to 'tests/unittest_objects.py')
-rw-r--r-- | tests/unittest_objects.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/unittest_objects.py b/tests/unittest_objects.py index 8c56c9fd..9111477f 100644 --- a/tests/unittest_objects.py +++ b/tests/unittest_objects.py @@ -96,28 +96,6 @@ class SuperTests(unittest.TestCase): self.assertIsInstance(second, bases.Instance) self.assertEqual(second.qname(), "%s.super" % bases.BUILTINS) - @test_utils.require_version(maxver="3.0") - def test_super_on_old_style_class(self): - # super doesn't work on old style class, but leave - # that as an error for pylint. We'll infer Super objects, - # but every call will result in a failure at some point. - node = builder.extract_node( - """ - class OldStyle: - def __init__(self): - super(OldStyle, self) #@ - """ - ) - old = next(node.infer()) - self.assertIsInstance(old, objects.Super) - self.assertIsInstance(old.mro_pointer, nodes.ClassDef) - self.assertEqual(old.mro_pointer.name, "OldStyle") - with self.assertRaises(exceptions.SuperError) as cm: - old.super_mro() - self.assertEqual( - str(cm.exception), "Unable to call super on old-style classes." - ) - @test_utils.require_version(minver="3.0") def test_no_arguments_super(self): ast_nodes = builder.extract_node( |