diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-04-28 00:23:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 00:23:35 (GMT) |
commit | d55133f49fe678fbf047a647aa8bb8b520410e8d (patch) | |
tree | db31a77eb0f6afec122315b46c74597f1f4f9441 /Lib/test/test_parser.py | |
parent | 5d1f32d33ba24d0aa87235ae40207bb57778388b (diff) | |
download | cpython-d55133f49fe678fbf047a647aa8bb8b520410e8d.zip cpython-d55133f49fe678fbf047a647aa8bb8b520410e8d.tar.gz cpython-d55133f49fe678fbf047a647aa8bb8b520410e8d.tar.bz2 |
bpo-40334: Catch E_EOF error, when the tokenizer returns ERRORTOKEN (GH-19743)
An E_EOF error was only being caught after the parser exited before this commit. There are some cases though, where the tokenizer returns ERRORTOKEN *and* has set an E_EOF error (like when EOF directly follows a line continuation character) which weren't correctly handled before.
Diffstat (limited to 'Lib/test/test_parser.py')
0 files changed, 0 insertions, 0 deletions