commit: a24a5f2c1a18f15f7a1555c73377f85772b89ffb
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 9 17:34:43 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 9 17:46:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a24a5f2c
dev-python/virtualenv: Enable testing on pypy3.11
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/virtualenv/virtualenv-20.29.3.ebuild | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/dev-python/virtualenv/virtualenv-20.29.3.ebuild
b/dev-python/virtualenv/virtualenv-20.29.3.ebuild
index e32ad0a49967..103faa13760b 100644
--- a/dev-python/virtualenv/virtualenv-20.29.3.ebuild
+++ b/dev-python/virtualenv/virtualenv-20.29.3.ebuild
@@ -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 )