[Python][EY7] Fails tests but seems to be working localy?

[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.
[tester::#EY7] Running tests for Stage #EY7 (Scanning: Identifiers)
[tester::#EY7] [test-1] Running test case: 1
[tester::#EY7] [test-1] Writing contents to ./test.lox:
[tester::#EY7] [test-1.lox] bar baz
[tester::#EY7] [test-1] $ ./your_program.sh tokenize test.lox
[your_program] IDENTIFIER bar null
[your_program] IDENTIFIER  null
[your_program] EOF  null
[tester::#EY7] [test-1] ✓ IDENTIFIER bar null
[tester::#EY7] [test-1] 𐄂 IDENTIFIER  null
[tester::#EY7] [test-1] Expected line #2 on stdout to be "IDENTIFIER baz null", got "IDENTIFIER  null"
[tester::#EY7] [test-1] Test failed (try setting 'debug: true' in your codecrafters.yml to see more details)

but when i try the same thing localy:

IDENTIFIER bar null
IDENTIFIER baz null
EOF  null

it works with the exact same content in the file

Hey @Zeviraty, looks like the code isn’t handling the case where there’s no trailing newline: