Skip to content

Commit

Permalink
dev-python/tox: only depend on dev-python/regex for tests w/o pypy
Browse files Browse the repository at this point in the history
Skip tests importing re_assert for pypy.

Bug: https://bugs.gentoo.org/924136
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
thesamesam committed Feb 10, 2024
1 parent 284e7fe commit a3acbd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-python/tox/tox-4.12.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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*')
)
Expand Down Expand Up @@ -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
}

0 comments on commit a3acbd0

Please sign in to comment.