diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-05-29 14:02:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-05-29 14:26:22 +0200 |
commit | d7f12d179930490b1fcfa4b0a1fa8dc8db25ce39 (patch) | |
tree | 86560b4d45b69ff5576086a518674110ad036e90 | |
parent | media-video/webcamoid: drop 9.0.0 (diff) | |
download | gentoo-d7f12d179930490b1fcfa4b0a1fa8dc8db25ce39.tar.gz gentoo-d7f12d179930490b1fcfa4b0a1fa8dc8db25ce39.tar.bz2 gentoo-d7f12d179930490b1fcfa4b0a1fa8dc8db25ce39.zip |
dev-python/yarl: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/yarl/yarl-1.9.2.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
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= } |