diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-27 08:51:43 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-27 09:12:30 -0400 |
commit | 055a9f4b38aebdabc8cb80dcc40a5b29b8f71781 (patch) | |
tree | 2ef5112132ccebdb9bb0e9553fddd8de8d20c93f /tests/stress_phystoken.tok | |
parent | 15aff0ad7d6c92851bc21fc39863a3949edbb9c6 (diff) | |
download | python-coveragepy-git-055a9f4b38aebdabc8cb80dcc40a5b29b8f71781.tar.gz |
fix(debug): ast_dump failed on a few things
Diffstat (limited to 'tests/stress_phystoken.tok')
-rw-r--r-- | tests/stress_phystoken.tok | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stress_phystoken.tok b/tests/stress_phystoken.tok index f2b190c3..65ba45db 100644 --- a/tests/stress_phystoken.tok +++ b/tests/stress_phystoken.tok @@ -4,6 +4,7 @@ # Here's some random Python so that test_tokenize_myself will have some # stressful stuff to try. This file is .tok instead of .py so pylint won't # complain about it, check_eol won't look at it, etc. +# Some lines are here to reproduce fixed bugs in ast_dump also. first_back = """\ hey there! @@ -50,6 +51,15 @@ a_long_string = \ "3 is longer" def hello(): + global x # ast_dump bug print("Hello world!") hello() + +# ast dump bugs: +weird = { + **d, + **{'c': 7}, + 'd': 8, +} +self.hash.update(b'.') |