Skip to content

Commit dbd4c5f

Browse files
nicoddemuspytestbot
authored andcommitted
[7.2.x] Fix test_raising_repr test
1 parent b2271af commit dbd4c5f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

testing/test_assertion.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,15 +1664,7 @@ def test_raising_repr():
16641664
"""
16651665
)
16661666
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-
result.stdout.fnmatch_lines(
1674-
["E AssertionError: <unprintable AssertionError object>"]
1675-
)
1667+
result.stdout.fnmatch_lines(["E AssertionError: <exception str() failed>"])
16761668

16771669

16781670
def test_issue_1944(pytester: Pytester) -> None:

0 commit comments

Comments
 (0)