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 83220138239 for ; Sun, 12 Apr 2020 11:29:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C63C7E08F3; Sun, 12 Apr 2020 11:29:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 AD325E08F3 for ; Sun, 12 Apr 2020 11:29:58 +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 7AD0434F08D for ; Sun, 12 Apr 2020 11:29:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44F2D150 for ; Sun, 12 Apr 2020 11:29:55 +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: <1586690989.1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/, dev-lang/python/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/python/files/test-__all__-numpy.patch dev-lang/python/python-3.8.2-r1.ebuild dev-lang/python/python-3.9.0_alpha5.ebuild X-VCS-Directories: dev-lang/python/files/ dev-lang/python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1aafbb4cdaf3067e41a772660b28dc1843ae4e8d X-VCS-Branch: master Date: Sun, 12 Apr 2020 11:29:55 +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: a30a0440-bcb1-415a-8ba0-924b940cb80d X-Archives-Hash: 821f8c068f5af5c957c2896d777ea868 commit: 1aafbb4cdaf3067e41a772660b28dc1843ae4e8d Author: Michał Górny gentoo org> AuthorDate: Sun Apr 12 10:34:41 2020 +0000 Commit: Michał Górny gentoo 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 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