Skip to content

Commit

Permalink
skip the suggestion tests on 3.11
Browse files Browse the repository at this point in the history
no monkeypatching is done there anyway
  • Loading branch information
cfbolz committed Nov 14, 2022
1 parent 29555cb commit 6fdd1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def test_print_exc(


@pytest.mark.skipif(
not hasattr(NameError, "name"),
not hasattr(NameError, "name") or sys.version_info[:2] == (3, 11),
reason="only works if NameError exposes the missing name",
)
def test_nameerror_suggestions(
Expand All @@ -482,7 +482,7 @@ def test_nameerror_suggestions(


@pytest.mark.skipif(
not hasattr(AttributeError, "name"),
not hasattr(AttributeError, "name") or sys.version_info[:2] == (3, 11),
reason="only works if AttributeError exposes the missing name",
)
def test_nameerror_suggestions_in_group(
Expand Down

0 comments on commit 6fdd1d7

Please sign in to comment.