From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/, dev-lang/python/files/
Date: Sun, 12 Apr 2020 11:29:55 +0000 (UTC) [thread overview]
Message-ID: <1586690989.1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.mgorny@gentoo> (raw)
commit: 1aafbb4cdaf3067e41a772660b28dc1843ae4e8d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 12 10:34:41 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 12 11:29:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aafbb4c
dev-lang/python: Fix test failure due to importing numpy in 3.8+
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-lang/python/files/test-__all__-numpy.patch | 13 +++++++++++++
dev-lang/python/python-3.8.2-r1.ebuild | 2 ++
dev-lang/python/python-3.9.0_alpha5.ebuild | 2 ++
3 files changed, 17 insertions(+)
diff --git a/dev-lang/python/files/test-__all__-numpy.patch b/dev-lang/python/files/test-__all__-numpy.patch
new file mode 100644
index 00000000000..1b91abbf6f6
--- /dev/null
+++ b/dev-lang/python/files/test-__all__-numpy.patch
@@ -0,0 +1,13 @@
+diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
+index c077881511..0728bef6c4 100644
+--- a/Lib/test/test___all__.py
++++ b/Lib/test/test___all__.py
+@@ -71,6 +71,8 @@ class AllTest(unittest.TestCase):
+ blacklist = set([
+ # Will raise a SyntaxError when compiling the exec statement
+ '__future__',
++ # imports numpy which causes warnings
++ 'test.test_pickletools',
+ ])
+
+ if not sys.platform.startswith('java'):
diff --git a/dev-lang/python/python-3.8.2-r1.ebuild b/dev-lang/python/python-3.8.2-r1.ebuild
index 35d43534599..d6b9c2e9ec3 100644
--- a/dev-lang/python/python-3.8.2-r1.ebuild
+++ b/dev-lang/python/python-3.8.2-r1.ebuild
@@ -67,6 +67,8 @@ src_prepare() {
local PATCHES=(
"${WORKDIR}/${PATCHSET}"
"${FILESDIR}/test.support.unlink-ignore-PermissionError.patch"
+ # add module importing numpy to blacklist
+ "${FILESDIR}/test-__all__-numpy.patch"
)
default
diff --git a/dev-lang/python/python-3.9.0_alpha5.ebuild b/dev-lang/python/python-3.9.0_alpha5.ebuild
index 49d4c9d5f87..2e9353ebaf6 100644
--- a/dev-lang/python/python-3.9.0_alpha5.ebuild
+++ b/dev-lang/python/python-3.9.0_alpha5.ebuild
@@ -83,6 +83,8 @@ src_prepare() {
local PATCHES=(
"${WORKDIR}/${PATCHSET}"
"${FILESDIR}/test.support.unlink-ignore-PermissionError.patch"
+ # add module importing numpy to blacklist
+ "${FILESDIR}/test-__all__-numpy.patch"
)
default
next reply other threads:[~2020-04-12 11:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-12 11:29 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-04-04 18:22 [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/, dev-lang/python/files/ Mike Gilbert
2020-04-03 14:55 Mike Gilbert
2020-03-07 15:45 Michał Górny
2020-01-03 8:27 Michał Górny
2019-10-19 1:05 Mike Gilbert
2018-04-13 19:33 Aaron Bauman
2018-04-01 17:18 Mike Gilbert
2017-07-30 15:26 Mike Gilbert
2016-06-06 19:40 Michał Górny
2015-10-02 13:56 Mike Frysinger
2015-08-09 8:48 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=1586690989.1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.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