-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
re-enable 4 tests, accidentally dropped #8088
Conversation
Originally posted by @webknjaz in #8074 (comment) Sure glad that having PyPy in the matrix generates the the difference delta between "testing with AIOHTTP_NO_EXTENSIONS=1" and "testing aiohttp with no extensions" for free (same yarl version). |
FWIW I didn't mean that you should be doing the refactoring right now. Just fixing these few places is a good starter. I wanted a more global revamp with fixtures in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8088 +/- ##
==========================================
+ Coverage 97.41% 97.50% +0.09%
==========================================
Files 107 107
Lines 32732 32745 +13
Branches 3823 3829 +6
==========================================
+ Hits 31885 31928 +43
+ Misses 640 615 -25
+ Partials 207 202 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Oh, Pypy has an actual test error. Didn't realise at first, given that Pypy fails 50% of the time currently when installing dependencies... |
@pajod Any chance you could look into the Pypy failure in order to get this PR finished? |
I copied the wrong line, earlier. It is the (request) parser param that should have informed the xfail() decision.
previous variant failed on PyPy, but that is yarl.URL("invalid") behaviour we do not depend on
5be70a1
to
bc6f24e
Compare
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 0016004 on top of patchback/backports/3.10/0016004f0e5b861d35afc56a9a59040769af3122/pr-8088 Backporting merged PR #8088 into master
🤖 @patchback |
@pajod Thanks for that. If you've got time to complete the backport as above, that'd be appreciated. |
(cherry picked from commit 0016004)
Backport to 3.9: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 0016004 on top of patchback/backports/3.9/0016004f0e5b861d35afc56a9a59040769af3122/pr-8088 Backporting merged PR #8088 into master
🤖 @patchback |
@pajod @Dreamsorcerer can this be backported to 3.9? All the test-only updates should be backported to the oldest active branch, provided they don't fail there. This is to reduce merge conflicts in future backports that might touch surrounding lines. |
(cherry picked from commit 0016004)
What do these changes do?
I copied the wrong line, earlier, so those new tests did not run.
It is the (request) parser param that should have informed the xfail() decision.
Are there changes in behavior for the user?
Testing only.
However, I do expect behaviour and/or documentation changes are desirable.. after I figured out a way to rewrite these tests to more clearly pinpoint the problem.
Commentary
test_empty_header_name, which is a subset of test_invalid_header_spacing: testing against llhttp 9.2 makes those pass
test_parse_unusual_request_line: I expected applying Fix BadStatusLine message #7651 would give me a descriptive exception text for the remaining differences, but I still get "BadStatusLine" so I stopped short of figuring out if they fail in any of the actually relevant branches, or need to be fine-tuned before even attempting at making them pass.
test_http_request_parser_utf8_request_line: After reading up on more clever ways to abuse parser differences, maybe leaving the llhttp side as-is and making the python parser less liberal (as in rfc761#section-2.10) would be the better choice.
Related issue number
Follow-up to #8074
Checklist
pytest.xfail()
does not appear to share the strict_xfail behaviour ofpytest.mark.xfail()
- but how else could I see the XPASS when testing against llhttp main branch?CHANGES/
folder