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_inference.py | |
parent | baa58746a2c9e51b757c623c883a02151bda4265 (diff) | |
download | astroid-git-f2c75754dbaafbe2d9800eb8d3fc38383414dad1.tar.gz |
Remove Python 2 specific tests
Diffstat (limited to 'tests/unittest_inference.py')
-rw-r--r-- | tests/unittest_inference.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py index f91960d7..7fc5990a 100644 --- a/tests/unittest_inference.py +++ b/tests/unittest_inference.py @@ -500,17 +500,6 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): self.assertEqual(inferred.name, "set") self.assertIn("remove", inferred._proxied.locals) - @test_utils.require_version(maxver="3.0") - def test_unicode_type(self): - code = '''u = u""''' - ast = parse(code, __name__) - n = ast["u"] - inferred = next(n.infer()) - self.assertIsInstance(inferred, nodes.Const) - self.assertIsInstance(inferred, Instance) - self.assertEqual(inferred.name, "unicode") - self.assertIn("lower", inferred._proxied.locals) - @pytest.mark.xfail(reason="Descriptors are not properly inferred as callable") def test_descriptor_are_callable(self): code = """ @@ -3861,19 +3850,6 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): inferred.getattr("teta") inferred.getattr("a") - @test_utils.require_version(maxver="3.0") - def test_delayed_attributes_with_old_style_classes(self): - ast_node = extract_node( - """ - class A: - __slots__ = ('a', ) - a = A() - a.teta = 42 - a #@ - """ - ) - next(ast_node.infer()).getattr("teta") - def test_lambda_as_methods(self): ast_node = extract_node( """ |