diff options
Diffstat (limited to 'dev-python/coverage')
| -rw-r--r-- | dev-python/coverage/coverage-6.3.2-r1.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dev-python/coverage/coverage-6.3.2-r1.ebuild b/dev-python/coverage/coverage-6.3.2-r1.ebuild index f38b2ef157ef..3c7244b6ef91 100644 --- a/dev-python/coverage/coverage-6.3.2-r1.ebuild +++ b/dev-python/coverage/coverage-6.3.2-r1.ebuild @@ -48,8 +48,13 @@ python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin - if [[ ${EPYTHON} != pypy* ]]; then - cp "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so \ + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" \ coverage/ || die test_tracer c rm coverage/*.so || die |
