From dbd4c5fb2f7048196808bf0ac83be3f7b56bf164 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 9 Nov 2022 20:20:05 -0300 Subject: [PATCH] [7.2.x] Fix test_raising_repr test --- testing/test_assertion.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index d8844f2e4..757459221 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -1664,15 +1664,7 @@ def test_raise_assertion_error_raising_repr(pytester: Pytester) -> None: """ ) result = pytester.runpytest() - if sys.version_info >= (3, 11): - # python 3.11 has native support for un-str-able exceptions - result.stdout.fnmatch_lines( - ["E AssertionError: "] - ) - else: - result.stdout.fnmatch_lines( - ["E AssertionError: "] - ) + result.stdout.fnmatch_lines(["E AssertionError: "]) def test_issue_1944(pytester: Pytester) -> None: