From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3001C1382C5 for ; Thu, 3 Dec 2020 14:34:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A60AE083D; Thu, 3 Dec 2020 14:34:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1379FE083D for ; Thu, 3 Dec 2020 14:34:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 07B59341366 for ; Thu, 3 Dec 2020 14:34:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AED7D476 for ; Thu, 3 Dec 2020 14:34:36 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1607006073.71b1516c8f2f948de2ff8d134ea822d0ab35f494.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/backports-zoneinfo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild X-VCS-Directories: dev-python/backports-zoneinfo/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 71b1516c8f2f948de2ff8d134ea822d0ab35f494 X-VCS-Branch: master Date: Thu, 3 Dec 2020 14:34:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f099c81-d721-46ce-b59d-1aec55aa5e34 X-Archives-Hash: 5ae1a1c0539d1670452123381c0bde28 commit: 71b1516c8f2f948de2ff8d134ea822d0ab35f494 Author: Michał Górny gentoo org> AuthorDate: Thu Dec 3 14:33:56 2020 +0000 Commit: Michał Górny gentoo 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 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