summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Haigh <hello@nelf.in>2021-05-23 08:08:24 +1000
committerGitHub <noreply@github.com>2021-05-23 00:08:24 +0200
commit4cfd9b6d1003b9912ab94538e1dfa5d734f55251 (patch)
tree91087305f2457c4a44589119817b99d56f98cb79 /tests
parent54cfd7253973fa47915da4bdd1a55ed197d16bab (diff)
downloadastroid-git-4cfd9b6d1003b9912ab94538e1dfa5d734f55251.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest_inference.py4
-rw-r--r--tests/unittest_object_model.py1
2 files changed, 0 insertions, 5 deletions
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"""