Fix test_invalid_idna for idna 3.11 compatibility#12036
Fix test_invalid_idna for idna 3.11 compatibility#12036Dreamsorcerer merged 1 commit intoaio-libs:masterfrom
Conversation
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
|
- Replace \u2061 (FUNCTION APPLICATION) with \u0080 (PAD character) in test - idna 3.11 silently removes \u2061 instead of raising an exception - \u0080 is rejected by yarl during URL construction and correctly raises InvalidURL - Pin idna>=3.11 in runtime-deps.in and regenerate requirements files Fixes aio-libs#12027
2a65dbb to
07921b1
Compare
|
CI is failing due to flaky test (see #11992) |
Well, actually idna is probably the cause that started this test failing... It seems that's it's unreliable enough that a more recent version managed to pass and get merged regardless, hence the flakiness we see today. Ideally we can pull the import time back down in future... |
Ah, that’s revealing. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12036 +/- ##
==========================================
- Coverage 98.76% 98.75% -0.01%
==========================================
Files 127 127
Lines 44658 44658
Branches 2372 2372
==========================================
- Hits 44105 44104 -1
Misses 393 393
- Partials 160 161 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.13: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 9053e8c on top of patchback/backports/3.13/9053e8ce4a72cfc38eba9f224d4d432371c0c25b/pr-12036 Backporting merged PR #12036 into master
🤖 @patchback |
Backport to 3.14: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 9053e8c on top of patchback/backports/3.14/9053e8ce4a72cfc38eba9f224d4d432371c0c25b/pr-12036 Backporting merged PR #12036 into master
🤖 @patchback |
|
@rodrigobnogueira have you looked into backporting? |
|
sorry, I'll do it today |
|
done |
) (aio-libs#12165) Backport of aio-libs#12036 to `3.13`.
What do these changes do?
Are there changes in behavior for the user?
No. This is a test-only fix with no impact on user-facing behavior.
Is it a substantial burden for the maintainers to support this?
No. This is a minimal change that updates a single test character and pins the
idnadependency to ensure compatibility with the latest version. The fix is straightforward and does not introduce any new complexity.Related issue number
Fixes #12027
Checklist
CONTRIBUTORS.txtCHANGES/folder