dev-python/virtualenv: Enable testing on pypy3.11

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-03-09 18:34:43 +01:00
parent 91f21a3745
commit a24a5f2c1a

View File

@@ -4,8 +4,8 @@
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_TESTED=( python3_{10..13} pypy3 )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" pypy3_11 )
PYTHON_TESTED=( python3_{10..13} pypy3 pypy3_11 )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
inherit distutils-r1 multiprocessing pypi
@@ -49,7 +49,7 @@ BDEPEND="
' 'python3*')
$(python_gen_cond_dep '
>=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
' pypy3)
' 'pypy3*')
)
"
@@ -94,6 +94,14 @@ python_test() {
tests/unit/test_util.py::test_reentrant_file_lock_is_thread_safe
)
case ${EPYTHON} in
pypy3.11)
EPYTEST_DESELECT+=(
# these don't like the executable called pypy3.11?
tests/unit/activation/test_bash.py::test_bash
tests/unit/activation/test_fish.py::test_fish
tests/unit/discovery/py_info/test_py_info.py::test_fallback_existent_system_executable
)
;;
python3.1[23])
EPYTEST_DESELECT+=(
tests/unit/create/via_global_ref/test_build_c_ext.py
@@ -110,7 +118,7 @@ python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x TZ=UTC
local plugins=( -p flaky -p pytest_mock )
if [[ ${EPYTHON} == pypy3 ]]; then
if [[ ${EPYTHON} == pypy3* ]]; then
plugins+=( -p freezer )
else
plugins+=( -p time_machine )