summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2017-10-31 00:46:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-10-31 00:46:34 (GMT)
commit690c36f2f1085145d364a89bfed5944dd2470308 (patch)
treedb583db6fa71f47ac466224a6b36d48396b0aeed /Lib/test
parent2702380870b63ebe0161dfa29a2d0a3de02401b4 (diff)
downloadcpython-690c36f2f1085145d364a89bfed5944dd2470308.zip
cpython-690c36f2f1085145d364a89bfed5944dd2470308.tar.gz
cpython-690c36f2f1085145d364a89bfed5944dd2470308.tar.bz2
[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_tokenize.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index 10e0ad8..ef02342 100644
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -632,6 +632,11 @@ def"', """\
NUMBER '1' (1, 8) (1, 9)
""")
+ self.check_tokenize("async\\", """\
+ ERRORTOKEN '\\\\' (1, 5) (1, 6)
+ NAME 'async' (1, 0) (1, 5)
+ """)
+
self.check_tokenize("a = (async = 1)", """\
NAME 'a' (1, 0) (1, 1)
OP '=' (1, 2) (1, 3)