Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:ALP:Source:Standard:Core:0.1
python-pytest
fix-test-raising-repr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-test-raising-repr.patch of Package python-pytest
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:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor