-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update a regex in test_aiohttp_request_coroutine for Python 3.14 #11271
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11271 +/- ##
=======================================
Coverage 98.84% 98.84%
=======================================
Files 131 131
Lines 43262 43262
Branches 2327 2327
=======================================
Hits 42761 42761
Misses 346 346
Partials 155 155
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #11271 will not alter performanceComparing Summary
|
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #11302 🤖 @patchback |
) (cherry picked from commit 331c989)
Backport to 3.13: 💚 backport PR created✅ Backport PR branch: Backported as #11303 🤖 @patchback |
) (cherry picked from commit 331c989)
What do these changes do?
Based on downstream testing in Fedora Rawhide, the expected message associated with the
TypeError
intest_aiohttp_request_coroutine
has changed for Python 3.14, which results in a test regression on Python 3.14.This PR conditionalizes the message regex on the Python interpreter version, fixing the regression.
This can’t easily be reproduced in a virtualenv yet: I have to work around Pydantic and uvloop not being installable for Python 3.14, and even after that,
pytest
segfaults. However, I have tested the patch with Python 3.14 in Fedora.Are there changes in behavior for the user?
No; users running tests on Python 3.14 will see one fewer failure.
Is it a substantial burden for the maintainers to support this?
No. It may be desirable to remove the
if/else
and the old regex once Python 3.14 is the oldest supported Python version.Related issue number
N/A
Checklist
CONTRIBUTORS.txt
This was an awfully trivial change, but OK.CHANGES/
folder