-
Notifications
You must be signed in to change notification settings - Fork 419
Python 3.13.2: TestConnectParams.test_connect_params fails with ValueError: Invalid IPv6 URL #1236
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
I think it's triggered by the fix for CVE-2025-0938 |
I disabled the test in #1244 for now. |
6 tasks
algitbot
pushed a commit
to alpinelinux/aports
that referenced
this issue
May 10, 2025
The `test_connect_params` test is broken due to changes in URI parsing of multiple hosts containing IPv6 addresses and is temporarily disabled upstream. Skip the test until it is fixed upstream. ``` ____________________ TestConnectParams.test_connect_params _____________________ Traceback (most recent call last): File "/usr/lib/python3.12/unittest/case.py", line 58, in testPartExecutor yield File "/usr/lib/python3.12/unittest/case.py", line 634, in run self._callTestMethod(testMethod) File "/usr/lib/python3.12/unittest/case.py", line 589, in _callTestMethod if method() is not None: ^^^^^^^^ File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/tests/test_connect.py", line 1237, in test_connect_params self.run_testcase(testcase) File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/tests/test_connect.py", line 1154, in run_testcase addrs, params = connect_utils._parse_connect_dsn_and_args( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/testenv/lib/python3.12/site-packages/asyncpg/connect_utils.py", line 280, in _parse_connect_dsn_and_args parsed = urllib.parse.urlparse(dsn) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/parse.py", line 395, in urlparse splitresult = urlsplit(url, scheme, allow_fragments) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/parse.py", line 516, in urlsplit _check_bracketed_netloc(netloc) File "/usr/lib/python3.12/urllib/parse.py", line 451, in _check_bracketed_netloc raise ValueError("Invalid IPv6 URL") ValueError: Invalid IPv6 URL ``` Upstream issue: MagicStack/asyncpg#1236 Related PR: MagicStack/asyncpg#1244
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on historical test-builds of the
python-asyncpg
package in Fedora, this appears to be a regression from Python 3.13.1 to 3.13.2.The subject of this report is:
The full output for that failure is:
The text was updated successfully, but these errors were encountered: