From d8708fcf676f4b8553e7639f76127417e296feca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 25 Jul 2020 10:05:09 +0200 Subject: [PATCH] dev-python/virtualenv: Fix skipping tests on py2+pypy3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/virtualenv/virtualenv-20.0.27.ebuild | 11 +++++++---- dev-python/virtualenv/virtualenv-20.0.28.ebuild | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/dev-python/virtualenv/virtualenv-20.0.27.ebuild b/dev-python/virtualenv/virtualenv-20.0.27.ebuild index a8a3d84852f00..651770201985a 100644 --- a/dev-python/virtualenv/virtualenv-20.0.27.ebuild +++ b/dev-python/virtualenv/virtualenv-20.0.27.ebuild @@ -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 diff --git a/dev-python/virtualenv/virtualenv-20.0.28.ebuild b/dev-python/virtualenv/virtualenv-20.0.28.ebuild index a8a3d84852f00..651770201985a 100644 --- a/dev-python/virtualenv/virtualenv-20.0.28.ebuild +++ b/dev-python/virtualenv/virtualenv-20.0.28.ebuild @@ -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