Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure in test_repr_with_name with Python 3.12.0 #423

Closed
UTsweetyfish opened this issue Apr 15, 2024 · 1 comment
Closed

Test failure in test_repr_with_name with Python 3.12.0 #423

UTsweetyfish opened this issue Apr 15, 2024 · 1 comment

Comments

@UTsweetyfish
Copy link

Hi,

When building pytest-mock in python 3.12.0:

FAILED ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name - AssertionError: Regex pattern did not match.
FAILED ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] - AssertionError: Regex pattern did not match.
FAILED ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] - AssertionError: Regex pattern did not match.
FAILED ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] - AssertionError: Regex pattern did not match.
FAILED ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] - AssertionError: Regex pattern did not match.

Looking into the issue, seems #404 caused test failure.

The change in python (python/cpython#111019) mentioned in #404 was backported to python 3.11.7 and 3.12.1, causing Python 3.12.0 fails.

@nicoddemus
Copy link
Member

I see, thanks for reporting.

TBH I don't intend to have the test suite working on every minor version of Python, supporting the latest one is enough in the context of this project.

@nicoddemus nicoddemus closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants