From 6da83d3c58df2465ad6142889fd413cd85ae3bec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 Jul 2020 01:21:21 -0700 Subject: 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 --- dev-python/async_generator/async_generator-1.10.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-python/async_generator') 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 +} -- cgit v1.2.3-65-gdbad