From 36161f31d30f0c135c3106e581f795f9f2dc2bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 12 Apr 2026 17:26:01 +0200 Subject: [PATCH] dev-python/pytest-socket: Enable py3.14, fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../pytest-socket-0.7.0-r1.ebuild | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dev-python/pytest-socket/pytest-socket-0.7.0-r1.ebuild b/dev-python/pytest-socket/pytest-socket-0.7.0-r1.ebuild index 9961201d90cb7..724969b4f0abb 100644 --- a/dev-python/pytest-socket/pytest-socket-0.7.0-r1.ebuild +++ b/dev-python/pytest-socket/pytest-socket-0.7.0-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 2025 Gentoo Authors +# Copyright 2025-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 pypi @@ -21,20 +21,20 @@ KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" dev-python/pytest[${PYTHON_USEDEP}] " -BDEPEND=" - test? ( - dev-python/pytest-httpx[${PYTHON_USEDEP}] - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - ) -" +EPYTEST_PLUGINS=( "${PN}" pytest-http{bin,x} ) +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 distutils_enable_tests pytest -src_test() { - local EPYTEST_DESELECT=( - tests/test_async.py::test_starlette - tests/test_restrict_hosts.py::test_help_message - ) +EPYTEST_DESELECT=( + tests/test_async.py::test_starlette + tests/test_restrict_hosts.py::test_help_message - distutils-r1_src_test -} + # require DNS access + tests/test_async.py::test_httpx_fails + tests/test_combinations.py::test_parametrize_with_socket_enabled_and_allow_hosts + tests/test_precedence.py::test_global_disable_and_allow_host + tests/test_socket.py::test_urllib_succeeds_by_default + tests/test_socket.py::test_enabled_urllib_succeeds + tests/test_socket.py::test_disabled_urllib_fails +)