public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/backports-zoneinfo/
Date: Thu,  3 Dec 2020 14:34:36 +0000 (UTC)	[thread overview]
Message-ID: <1607006073.71b1516c8f2f948de2ff8d134ea822d0ab35f494.mgorny@gentoo> (raw)

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


             reply	other threads:[~2020-12-03 14:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 14:34 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-30 19:21 [gentoo-commits] repo/gentoo:master commit in: dev-python/backports-zoneinfo/ Michał Górny
2021-11-09 14:01 Michał Górny
2021-09-26  7:05 James Le Cuirot
2021-02-22  6:32 Joshua Kinard
2021-01-21 21:30 Sergei Trofimovich
2021-01-18 14:53 Sam James
2021-01-07 20:15 Sam James
2021-01-07 11:36 Sam James
2021-01-07  1:12 Sam James
2021-01-07  1:08 Sam James
2021-01-06  8:09 Sam James
2021-01-05 21:00 Sam James
2021-01-05 14:14 Sergei Trofimovich
2020-12-20 11:49 Mikle Kolyada
2020-12-13  1:06 Sam James
2020-12-07  3:59 Matt Turner
2020-12-07  0:03 Sam James
2020-12-06 23:50 Sam James
2020-12-06 20:58 Sam James
2020-12-04 20:45 Sergei Trofimovich
2020-12-04 20:45 Sergei Trofimovich
2020-12-04 20:45 Sergei Trofimovich
2020-12-04 19:51 Sergei Trofimovich
2020-12-03 10:50 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1607006073.71b1516c8f2f948de2ff8d134ea822d0ab35f494.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox