summaryrefslogtreecommitdiff
path: root/dev-python/cython/files/cython-0.29.23-test_exceptions-py310.patch
blob: 0c9fb2c9ea5669c22afde48d4ca1760ff95dcd8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)