diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-05-15 02:34:54 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-05-15 02:36:35 +0200 |
commit | 3c2955b86d47c5ad95e40295f2b400af491eed6b (patch) | |
tree | db521a82b2cf2789a756dc1f133237da8507b1ca /dev-python/cython/files | |
parent | dev-python/cython: backport tracing fix for python3_10 compatibility (diff) | |
download | gentoo-3c2955b86d47c5ad95e40295f2b400af491eed6b.tar.gz gentoo-3c2955b86d47c5ad95e40295f2b400af491eed6b.tar.bz2 gentoo-3c2955b86d47c5ad95e40295f2b400af491eed6b.zip |
dev-python/cython: adapt IndentationError test to python3_10
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/cython/files')
-rw-r--r-- | dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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 000000000000..0c9fb2c9ea56 --- /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) |