dev-python/virtualenv: Fix skipping tests on py2+pypy3

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-07-25 10:05:09 +02:00
parent f5718394d6
commit d8708fcf67
2 changed files with 14 additions and 8 deletions

View File

@@ -79,10 +79,13 @@ src_configure() {
}
python_test() {
# TODO: fix/skip with more granularity tests on pypy3
if has "${EPYTHON}" pypy3 python2.7; then
einfo "Skipping broken tests on pypy3"
continue
if ! python_is_python3; then
ewarn "Tests are skipped on py2, please test externally"
return
elif [[ ${EPYTHON} == pypy3 ]]; then
# TODO: skip with better granularity
ewarn "Skipping broken tests on pypy3"
return
fi
distutils_install_for_testing

View File

@@ -79,10 +79,13 @@ src_configure() {
}
python_test() {
# TODO: fix/skip with more granularity tests on pypy3
if has "${EPYTHON}" pypy3 python2.7; then
einfo "Skipping broken tests on pypy3"
continue
if ! python_is_python3; then
ewarn "Tests are skipped on py2, please test externally"
return
elif [[ ${EPYTHON} == pypy3 ]]; then
# TODO: skip with better granularity
ewarn "Skipping broken tests on pypy3"
return
fi
distutils_install_for_testing