Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/, dev-python/cython/files/
Date: Sat, 15 May 2021 00:36:49
Message-Id: 1621038995.3c2955b86d47c5ad95e40295f2b400af491eed6b.marecki@gentoo
1 commit: 3c2955b86d47c5ad95e40295f2b400af491eed6b
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 15 00:34:54 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat May 15 00:36:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c2955b8
7
8 dev-python/cython: adapt IndentationError test to python3_10
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 dev-python/cython/cython-0.29.23.ebuild | 1 +
13 .../files/cython-0.29.23-test_exceptions-py310.patch | 14 ++++++++++++++
14 2 files changed, 15 insertions(+)
15
16 diff --git a/dev-python/cython/cython-0.29.23.ebuild b/dev-python/cython/cython-0.29.23.ebuild
17 index d091b7190eb..ef4189bc3f4 100644
18 --- a/dev-python/cython/cython-0.29.23.ebuild
19 +++ b/dev-python/cython/cython-0.29.23.ebuild
20 @@ -32,6 +32,7 @@ BDEPEND="${RDEPEND}
21 PATCHES=(
22 "${FILESDIR}/${PN}-0.29.14-sphinx-update.patch"
23 "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
24 + "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
25 "${FILESDIR}/${PN}-0.29.23-tracing-py310.patch"
26 )
27
28
29 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
30 new file mode 100644
31 index 00000000000..0c9fb2c9ea5
32 --- /dev/null
33 +++ b/dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch
34 @@ -0,0 +1,14 @@
35 +--- a/tests/run/test_exceptions.pyx
36 ++++ b/tests/run/test_exceptions.pyx
37 +@@ -188,7 +188,10 @@
38 +
39 + # should not apply to subclasses, see issue #31161
40 + s = '''if True:\nprint "No indent"'''
41 +- ckmsg(s, "expected an indented block", IndentationError)
42 ++ if sys.version_info >= (3, 10):
43 ++ ckmsg(s, "expected an indented block after 'if' statement on line 1", IndentationError)
44 ++ else:
45 ++ ckmsg(s, "expected an indented block", IndentationError)
46 +
47 + s = '''if True:\n print()\n\texec "mixed tabs and spaces"'''
48 + ckmsg(s, "inconsistent use of tabs and spaces in indentation", TabError)