We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2271af commit dbd4c5fCopy full SHA for dbd4c5f
testing/test_assertion.py
@@ -1664,15 +1664,7 @@ def test_raising_repr():
1664
"""
1665
)
1666
result = pytester.runpytest()
1667
- if sys.version_info >= (3, 11):
1668
- # python 3.11 has native support for un-str-able exceptions
1669
- result.stdout.fnmatch_lines(
1670
- ["E AssertionError: <exception str() failed>"]
1671
- )
1672
- else:
1673
1674
- ["E AssertionError: <unprintable AssertionError object>"]
1675
+ result.stdout.fnmatch_lines(["E AssertionError: <exception str() failed>"])
1676
1677
1678
def test_issue_1944(pytester: Pytester) -> None:
0 commit comments