mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)
This commit is contained in:
parent
2702380870
commit
690c36f2f1
3 changed files with 17 additions and 0 deletions
|
@ -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)", """\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue