commit:     a3acbd0ea10f94a48837663f6afb123044f6a989
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 10 03:16:14 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 10 03:23:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3acbd0e

dev-python/tox: 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 <sam <AT> gentoo.org>

 dev-python/tox/tox-4.12.1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-python/tox/tox-4.12.1.ebuild b/dev-python/tox/tox-4.12.1.ebuild
index fc92d9c5ac96..ad54e8f7474c 100644
--- a/dev-python/tox/tox-4.12.1.ebuild
+++ b/dev-python/tox/tox-4.12.1.ebuild
@@ -42,8 +42,8 @@ BDEPEND="
                dev-python/psutil[${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}]
                ' 'python*')
        )
@@ -83,5 +83,10 @@ python_test() {
                
'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_constraints_indirect-True-True]'
        )
 
+       [[ ${EPYTHON} == pypy3 ]] && EPYTEST_IGNORE+=(
+               # requires dev-python/re-assert
+               tests/session/cmd/test_sequential.py
+       )
+
        epytest
 }

Reply via email to