Daniel Garcia
4f2e4b3c5b
compatible with latest release of python-exceptiongroup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=105
22 lines
819 B
Diff
22 lines
819 B
Diff
Index: pytest-7.2.0/testing/test_assertion.py
|
|
===================================================================
|
|
--- pytest-7.2.0.orig/testing/test_assertion.py
|
|
+++ pytest-7.2.0/testing/test_assertion.py
|
|
@@ -1664,15 +1664,7 @@ def test_raise_assertion_error_raising_r
|
|
"""
|
|
)
|
|
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: <exception str() failed>"]
|
|
- )
|
|
- else:
|
|
- result.stdout.fnmatch_lines(
|
|
- ["E AssertionError: <unprintable AssertionError object>"]
|
|
- )
|
|
+ result.stdout.fnmatch_lines(["E AssertionError: <exception str() failed>"])
|
|
|
|
|
|
def test_issue_1944(pytester: Pytester) -> None:
|