mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-python/asyncpg: disable broken tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -37,8 +37,10 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.30.0-cflags.patch
|
||||
"${FILESDIR}"/${PN}-0.30.0-disable-broken-tests.patch
|
||||
)
|
||||
|
||||
EPYTEST_PLUGINS=( )
|
||||
EPYTEST_IGNORE=(
|
||||
# checks versions from env variables
|
||||
"${S}"/tests/test__environment.py
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
From 5a1ee01f8bc8fc6709ef4f636f7a67029d90e26d Mon Sep 17 00:00:00 2001
|
||||
From: Elvis Pranskevichus <elvis@edgedb.com>
|
||||
Date: Fri, 14 Mar 2025 17:58:46 -0700
|
||||
Subject: [PATCH] Disable connection URI tests broken by a recent Python fix
|
||||
(#1244)
|
||||
|
||||
A fix for python/cpython#105704 broke parsing of URIs containing
|
||||
multiple hosts if one or all of the hosts are IPv6 address literals.
|
||||
This blocks CI, so disable those tests for now until this is fixed
|
||||
properly.
|
||||
---
|
||||
tests/test_connect.py | 39 ++++++++++++++++++++-------------------
|
||||
1 file changed, 20 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/tests/test_connect.py b/tests/test_connect.py
|
||||
index 0037ee5..024c29e 100644
|
||||
--- a/tests/test_connect.py
|
||||
+++ b/tests/test_connect.py
|
||||
@@ -846,25 +846,26 @@ class TestConnectParams(tb.TestCase):
|
||||
),
|
||||
},
|
||||
|
||||
- {
|
||||
- 'name': 'dsn_ipv6_multi_host',
|
||||
- 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
|
||||
- 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
|
||||
- 'database': 'db',
|
||||
- 'user': 'user',
|
||||
- 'target_session_attrs': 'any',
|
||||
- })
|
||||
- },
|
||||
-
|
||||
- {
|
||||
- 'name': 'dsn_ipv6_multi_host_port',
|
||||
- 'dsn': 'postgresql://user@[2001:db8::1234]:1111,[::1]:2222/db',
|
||||
- 'result': ([('2001:db8::1234', 1111), ('::1', 2222)], {
|
||||
- 'database': 'db',
|
||||
- 'user': 'user',
|
||||
- 'target_session_attrs': 'any',
|
||||
- })
|
||||
- },
|
||||
+ # broken by https://github.com/python/cpython/pull/129418
|
||||
+ # {
|
||||
+ # 'name': 'dsn_ipv6_multi_host',
|
||||
+ # 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
|
||||
+ # 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
|
||||
+ # 'database': 'db',
|
||||
+ # 'user': 'user',
|
||||
+ # 'target_session_attrs': 'any',
|
||||
+ # })
|
||||
+ # },
|
||||
+
|
||||
+ # {
|
||||
+ # 'name': 'dsn_ipv6_multi_host_port',
|
||||
+ # 'dsn': 'postgresql://user@[2001:db8::1234]:1111,[::1]:2222/db',
|
||||
+ # 'result': ([('2001:db8::1234', 1111), ('::1', 2222)], {
|
||||
+ # 'database': 'db',
|
||||
+ # 'user': 'user',
|
||||
+ # 'target_session_attrs': 'any',
|
||||
+ # })
|
||||
+ # },
|
||||
|
||||
{
|
||||
'name': 'dsn_ipv6_multi_host_query_part',
|
||||
--
|
||||
2.50.0
|
||||
|
||||
Reference in New Issue
Block a user