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 1799013835A for ; Sat, 15 May 2021 00:36:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D3FEE091A; Sat, 15 May 2021 00:36:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 ECFBEE0919 for ; Sat, 15 May 2021 00:36:47 +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 C6B7933BE68 for ; Sat, 15 May 2021 00:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 453D377E for ; Sat, 15 May 2021 00:36:45 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1621038995.3c2955b86d47c5ad95e40295f2b400af491eed6b.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/, dev-python/cython/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cython/cython-0.29.23.ebuild dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch X-VCS-Directories: dev-python/cython/files/ dev-python/cython/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 3c2955b86d47c5ad95e40295f2b400af491eed6b X-VCS-Branch: master Date: Sat, 15 May 2021 00:36:45 +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: 90bba82a-dfda-4a3e-8b56-a946f98601aa X-Archives-Hash: 28e0abab9088fcaec5228a308a4834d3 commit: 3c2955b86d47c5ad95e40295f2b400af491eed6b Author: Marek Szuba gentoo org> AuthorDate: Sat May 15 00:34:54 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sat May 15 00:36:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c2955b8 dev-python/cython: adapt IndentationError test to python3_10 Signed-off-by: Marek Szuba gentoo.org> dev-python/cython/cython-0.29.23.ebuild | 1 + .../files/cython-0.29.23-test_exceptions-py310.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/dev-python/cython/cython-0.29.23.ebuild b/dev-python/cython/cython-0.29.23.ebuild index d091b7190eb..ef4189bc3f4 100644 --- a/dev-python/cython/cython-0.29.23.ebuild +++ b/dev-python/cython/cython-0.29.23.ebuild @@ -32,6 +32,7 @@ BDEPEND="${RDEPEND} PATCHES=( "${FILESDIR}/${PN}-0.29.14-sphinx-update.patch" "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" + "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" "${FILESDIR}/${PN}-0.29.23-tracing-py310.patch" ) diff --git a/dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch b/dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch new file mode 100644 index 00000000000..0c9fb2c9ea5 --- /dev/null +++ b/dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch @@ -0,0 +1,14 @@ +--- a/tests/run/test_exceptions.pyx ++++ b/tests/run/test_exceptions.pyx +@@ -188,7 +188,10 @@ + + # should not apply to subclasses, see issue #31161 + s = '''if True:\nprint "No indent"''' +- ckmsg(s, "expected an indented block", IndentationError) ++ if sys.version_info >= (3, 10): ++ ckmsg(s, "expected an indented block after 'if' statement on line 1", IndentationError) ++ else: ++ ckmsg(s, "expected an indented block", IndentationError) + + s = '''if True:\n print()\n\texec "mixed tabs and spaces"''' + ckmsg(s, "inconsistent use of tabs and spaces in indentation", TabError)