Skip to content

Commit

Permalink
dev-python/virtualenv: Fix skipping tests on py2+pypy3
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 25, 2020
1 parent f571839 commit d8708fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions dev-python/virtualenv/virtualenv-20.0.27.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions dev-python/virtualenv/virtualenv-20.0.28.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8708fc

Please sign in to comment.