Skip to content

Commit

Permalink
Skip test_repr_deep on newer Pythons where it doesn't error
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 26, 2024
1 parent a814f8a commit f4b8bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/list_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def test_repr(self):
assert repr(a2) == "[0, 1, 2, [...], 3]"

@not_pypy()
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Doesn't error on newer Pythons")
def test_repr_deep(self):
a = self.type2test([])
for i in range(1500 + 1): # sys.getrecursionlimit() + 100
Expand Down

0 comments on commit f4b8bff

Please sign in to comment.