summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-07-19 01:21:21 -0700
committerZac Medico <zmedico@gentoo.org>2020-07-19 01:21:56 -0700
commit6da83d3c58df2465ad6142889fd413cd85ae3bec (patch)
tree1bb76a1a1ad670e40b88b5dd9fc215c71bfa2163 /dev-python
parentdev-util/diffoscope: allow python3_8 (diff)
downloadgentoo-6da83d3c58df2465ad6142889fd413cd85ae3bec.tar.gz
gentoo-6da83d3c58df2465ad6142889fd413cd85ae3bec.tar.bz2
gentoo-6da83d3c58df2465ad6142889fd413cd85ae3bec.zip
dev-python/async_generator: Fix conftest.py ImportMismatchError
Closes: https://bugs.gentoo.org/733162 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/async_generator/async_generator-1.10.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/async_generator/async_generator-1.10.ebuild b/dev-python/async_generator/async_generator-1.10.ebuild
index 51b8ddbb5188..b9f080574056 100644
--- a/dev-python/async_generator/async_generator-1.10.ebuild
+++ b/dev-python/async_generator/async_generator-1.10.ebuild
@@ -17,4 +17,9 @@ KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
DOCS=( README.rst )
-distutils_enable_tests pytest
+python_test() {
+ pushd "${BUILD_DIR}/lib" >/dev/null || die
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+ rm -rf .pytest_cache || die
+ popd >/dev/null || die
+}