-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Inconsistent behaviour between Cython and CPython (or lack of docs, or both) #991
base: master
Are you sure you want to change the base?
Conversation
We should really finish up #860 to catch the differences better... |
tests/test_url_parsing.py
Outdated
assert u.query_string == "" | ||
assert u.fragment == "Pünktelchen\udca0\udcef\udcb6" | ||
assert u.path == u2.path | ||
# assert u.fragment == u2.fragment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# assert u.fragment == u2.fragment |
@@ -584,3 +584,34 @@ def test_empty_path(self): | |||
assert u.path == "" | |||
assert u.query_string == "" | |||
assert u.fragment == "" | |||
|
|||
def test_truncated_utf_sequence(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If path is the only difference, could you parametrize the test?
bc8a244
to
753781a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #991 +/- ##
==========================================
- Coverage 95.88% 95.83% -0.06%
==========================================
Files 27 27
Lines 5303 5331 +28
Branches 316 316
==========================================
+ Hits 5085 5109 +24
- Misses 192 196 +4
Partials 26 26
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 #991 will not alter performanceComparing Summary
|
What do these changes do?
Adds a test for the quoting inconsistency that I believe needs change. It is written such that the compiled module passes but setting
YARL_NO_EXTENSIONS=1
fails.Submitting without the desired change to verify CI results. May or may not add actual content eventually.
Are there changes in behavior for the user?
No, but maybe there should be. Telling the user they are responsible about URL correctness is not particularly useful if the specific correctness properties are not enumerated.
Related issue number
Still roughly the same scenario, just moved from aio-libs/aiohttp#8088 where it was unnecessarily tested for, and thus failed on PyPy
Checklist