Skip to content

Commit

Permalink
Remove xfail marker from passing tests (#994)
Browse files Browse the repository at this point in the history
test_augassign_recursion has been passing for a while. The remaining
tests were fixed by context.path changes in 15e1921.
  • Loading branch information
nelfin authored May 22, 2021
1 parent 54cfd72 commit 4cfd9b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tests/unittest_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,6 @@ def __init__(self):
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
Expand All @@ -1243,7 +1242,6 @@ def test_nonregr_multi_referential_addition(self):
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
Expand Down Expand Up @@ -2329,7 +2327,6 @@ def no_yield_mgr():
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
Expand Down Expand Up @@ -4890,7 +4887,6 @@ class instance(object):
self.assertIsInstance(inferred, Instance)


@pytest.mark.xfail(reason="Relying on path copy")
def test_augassign_recursion():
"""Make sure inference doesn't throw a RecursionError
Expand Down
1 change: 0 additions & 1 deletion tests/unittest_object_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ def test(self): return 42
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"""
Expand Down

0 comments on commit 4cfd9b6

Please sign in to comment.