mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 15:46:49 -10:00
When the token can be None (EOF), we can't use 'x in "abc"' style membership tests to group types of tokens together, because 'None in "abc"' is a TypeError. Easy enough to fix. (Use a tuple: It's neither a static typing error nor a runtime error to check for None in Tuple[str, ...]) Add tests to prevent a regression. (Note: they cannot be added prior to this fix, as the unhandled stack trace will not match test output in the CI system.) Signed-off-by: John Snow <[email protected]> Message-Id: <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Markus Armbruster <[email protected]>
2 lines
68 B
Plaintext
2 lines
68 B
Plaintext
missing-array-rsqb.json:1:44: expected '{', '[', string, or boolean
|