Skip to content

Commit 6872c8f

Browse files
author
whitequark
committed
Add a statement at EOF lexer test.
1 parent 61008c7 commit 6872c8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonparser/test/test_lexer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ def test_eof(self):
358358
"dedent", None,
359359
expect_trailing_nl=False)
360360

361+
def test_stmt_at_eof(self):
362+
self.assertLexes("x",
363+
"ident", "x")
364+
361365
def test_interactive(self):
362366
self.assertLexes("x\n\n",
363367
"ident", "x",

0 commit comments

Comments
 (0)