commit:     d7f12d179930490b1fcfa4b0a1fa8dc8db25ce39
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 29 12:02:56 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 29 12:26:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7f12d17

dev-python/yarl: Enable py3.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/yarl/yarl-1.9.2.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/dev-python/yarl/yarl-1.9.2.ebuild 
b/dev-python/yarl/yarl-1.9.2.ebuild
index dca10cbd9658..f08b6212d247 100644
--- a/dev-python/yarl/yarl-1.9.2.ebuild
+++ b/dev-python/yarl/yarl-1.9.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
 
 inherit distutils-r1 pypi
 
@@ -38,6 +38,20 @@ src_configure() {
 }
 
 python_test() {
+       local EPYTEST_DESELECT=()
+       if [[ ${EPYTHON} == python3.12 ]]; then
+               EPYTEST_DESELECT+=(
+                       # tests for seemingly invalid addresses, unlikely to 
affect
+                       # real world use
+                       # https://github.com/aio-libs/yarl/issues/876
+                       tests/test_url.py::test_ipv6_zone
+                       tests/test_url.py::test_human_repr_delimiters
+                       tests/test_url_parsing.py::TestHost::test_masked_ipv4
+                       tests/test_url_parsing.py::TestHost::test_strange_ip
+                       
tests/test_url_parsing.py::TestUserInfo::test_weird_user3
+               )
+       fi
+
        cd tests || die
        epytest --override-ini=addopts=
 }

Reply via email to