-
-
Notifications
You must be signed in to change notification settings - Fork 169
test_no_scheme2 fails with Python 3.11 #803
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
Comments
Looks like there was a change in how the stdlib behaves. The question is why. We need to see the upstream patch and the motivation behind it. |
This is the relevant commit: Thanks for your work. |
Aha! So it's not a bug in that patch but in our test. I suppose that it's easy to fix it by moving |
yarl parsing is coherent with new behavior of urlsplit for Python 3.11. Python 3.11.1 (main, Dec 31 2022, 10:23:59) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from yarl import URL
>>> url = URL('37signals:book')
>>> url.scheme
''
>>> url.path
'37signals:book'
>>> I think failing test just need to be adapted to python 3.11 like test_no_scheme1 did for different Python versions. Kind Regards |
Fixed by #810. |
This will actually happen with all Python interpreters patched against CVE-2023-24329 (see python/cpython#102153). |
Describe the bug
test_no_scheme2
fails with Python 3.11. See:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026634
(or your Actions log).
Python 3.10 or lower:
Python 3.11:
Kind Regards
To Reproduce
Just run the test with Python 3.11
Expected behavior
Test succeeds
Logs/tracebacks
Python Version
Python 3.11.1
multidict Version
n\a
yarl Version
n\a
OS
Debian
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: