[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)

This commit is contained in:
Pablo Galindo 2017-10-31 00:46:34 +00:00 committed by Victor Stinner
parent 2702380870
commit 690c36f2f1
3 changed files with 17 additions and 0 deletions

View file

@ -630,6 +630,11 @@ def"', """\
NAME 'async' (1, 0) (1, 5)
OP '=' (1, 6) (1, 7)
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)", """\