commit: 71b1516c8f2f948de2ff8d134ea822d0ab35f494 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Dec 3 14:33:56 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Dec 3 14:34:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71b1516c
dev-python/backports-zoneinfo: Skip tests on pypy3.6 Closes: https://bugs.gentoo.org/758275 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild b/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild index a801aa6a0fe..75591e16718 100644 --- a/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild +++ b/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild @@ -38,6 +38,21 @@ BDEPEND=" # pytest-subtests distutils_enable_tests unittest +python_test() { + if [[ ${EPYTHON} == pypy3 ]]; then + # pypy3.6 does not support dataclasses, and the backport + # does not work with pypy + local pypy3_version=$(best_version -b 'dev-python/pypy3') + if [[ ${pypy3_version} != *_p37* ]]; then + einfo "Skipping tests on pypy3.6 due to missing deps" + return + fi + fi + + "${EPYTHON}" -m unittest discover -v || + die "Tests failed with ${EPYTHON}" +} + python_install() { # avoid file collisions rm "${BUILD_DIR}"/lib/backports/__init__.py || die
