From 284e7fe37a8d18cc1f3e737a05a6d196dc7ae6c9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 10 Feb 2024 03:13:52 +0000 Subject: dev-python/aiohttp: only depend on dev-python/regex for tests w/o pypy Skip tests importing re_assert for pypy. Bug: https://bugs.gentoo.org/924136 Signed-off-by: Sam James --- dev-python/aiohttp/aiohttp-3.9.1.ebuild | 12 ++++++++++-- dev-python/aiohttp/aiohttp-3.9.2.ebuild | 10 +++++++++- dev-python/aiohttp/aiohttp-3.9.3.ebuild | 10 +++++++++- 3 files changed, 28 insertions(+), 4 deletions(-) (limited to 'dev-python/aiohttp') diff --git a/dev-python/aiohttp/aiohttp-3.9.1.ebuild b/dev-python/aiohttp/aiohttp-3.9.1.ebuild index 52c9a3b75738..f878b034c59f 100644 --- a/dev-python/aiohttp/aiohttp-3.9.1.ebuild +++ b/dev-python/aiohttp/aiohttp-3.9.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -40,8 +40,8 @@ BDEPEND=" dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] $(python_gen_cond_dep ' + dev-python/re-assert[${PYTHON_USEDEP}] dev-python/time-machine[${PYTHON_USEDEP}] ' 'python3*') test-rust? ( @@ -107,6 +107,14 @@ python_test() { # on PyPy3 but the test suite needs an explicit switch, # sigh local -x AIOHTTP_NO_EXTENSIONS=1 + + EPYTEST_IGNORE+=( + # Skip tests requiring dev-python/re-assert -> dev-python/regex + tests/test_streams.py + tests/test_urldispatch.py + tests/test_client_session.py + tests/test_web_response.py + ) ;; esac diff --git a/dev-python/aiohttp/aiohttp-3.9.2.ebuild b/dev-python/aiohttp/aiohttp-3.9.2.ebuild index 9cf851e1a006..1204601b7270 100644 --- a/dev-python/aiohttp/aiohttp-3.9.2.ebuild +++ b/dev-python/aiohttp/aiohttp-3.9.2.ebuild @@ -40,8 +40,8 @@ BDEPEND=" dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] $(python_gen_cond_dep ' + dev-python/re-assert[${PYTHON_USEDEP}] dev-python/time-machine[${PYTHON_USEDEP}] ' 'python3*') test-rust? ( @@ -107,6 +107,14 @@ python_test() { # on PyPy3 but the test suite needs an explicit switch, # sigh local -x AIOHTTP_NO_EXTENSIONS=1 + + EPYTEST_IGNORE+=( + # Skip tests requiring dev-python/re-assert -> dev-python/regex + tests/test_streams.py + tests/test_urldispatch.py + tests/test_client_session.py + tests/test_web_response.py + ) ;; esac diff --git a/dev-python/aiohttp/aiohttp-3.9.3.ebuild b/dev-python/aiohttp/aiohttp-3.9.3.ebuild index 9cf851e1a006..1204601b7270 100644 --- a/dev-python/aiohttp/aiohttp-3.9.3.ebuild +++ b/dev-python/aiohttp/aiohttp-3.9.3.ebuild @@ -40,8 +40,8 @@ BDEPEND=" dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] $(python_gen_cond_dep ' + dev-python/re-assert[${PYTHON_USEDEP}] dev-python/time-machine[${PYTHON_USEDEP}] ' 'python3*') test-rust? ( @@ -107,6 +107,14 @@ python_test() { # on PyPy3 but the test suite needs an explicit switch, # sigh local -x AIOHTTP_NO_EXTENSIONS=1 + + EPYTEST_IGNORE+=( + # Skip tests requiring dev-python/re-assert -> dev-python/regex + tests/test_streams.py + tests/test_urldispatch.py + tests/test_client_session.py + tests/test_web_response.py + ) ;; esac -- cgit v1.2.3