From 4cfd9b6d1003b9912ab94538e1dfa5d734f55251 Mon Sep 17 00:00:00 2001 From: Andrew Haigh Date: Sun, 23 May 2021 08:08:24 +1000 Subject: Remove xfail marker from passing tests (#994) test_augassign_recursion has been passing for a while. The remaining tests were fixed by context.path changes in 15e19216. --- tests/unittest_inference.py | 4 ---- tests/unittest_object_model.py | 1 - 2 files changed, 5 deletions(-) (limited to 'tests') diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py index e41ebf01..7fb1ed55 100644 --- a/tests/unittest_inference.py +++ b/tests/unittest_inference.py @@ -1229,7 +1229,6 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): self.assertEqual(len(foo_class.instance_attrs["attr"]), 1) self.assertEqual(bar_class.instance_attrs, {"attr": [assattr]}) - @pytest.mark.xfail(reason="Relying on path copy") def test_nonregr_multi_referential_addition(self): """Regression test for https://github.com/PyCQA/astroid/issues/483 Make sure issue where referring to the same variable @@ -1243,7 +1242,6 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): variable_a = extract_node(code) self.assertEqual(variable_a.inferred()[0].value, 2) - @pytest.mark.xfail(reason="Relying on path copy") def test_nonregr_layed_dictunpack(self): """Regression test for https://github.com/PyCQA/astroid/issues/483 Make sure multiple dictunpack references are inferable @@ -2329,7 +2327,6 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): self.assertRaises(InferenceError, next, module["other_decorators"].infer()) self.assertRaises(InferenceError, next, module["no_yield"].infer()) - @pytest.mark.xfail(reason="Relying on path copy") def test_nested_contextmanager(self): """Make sure contextmanager works with nested functions @@ -4890,7 +4887,6 @@ class ObjectDunderNewTest(unittest.TestCase): self.assertIsInstance(inferred, Instance) -@pytest.mark.xfail(reason="Relying on path copy") def test_augassign_recursion(): """Make sure inference doesn't throw a RecursionError diff --git a/tests/unittest_object_model.py b/tests/unittest_object_model.py index 5d438a65..64e49609 100644 --- a/tests/unittest_object_model.py +++ b/tests/unittest_object_model.py @@ -358,7 +358,6 @@ class FunctionModelTest(unittest.TestCase): with self.assertRaises(exceptions.InferenceError): next(node.infer()) - @pytest.mark.xfail(reason="Relying on path copy") def test_descriptor_error_regression(self): """Make sure the following code does node cause an exception""" -- cgit v1.2.1