lib-python/3/test/test_eof.py::unmodified
== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 04:18:51) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_1007853æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2568912093
0:00:00 load avg: 0.98 Run 1 test sequentially in a single process
0:00:00 load avg: 0.98 [1/1] test_eof
test_EOFS (test.test_eof.EOFTestCase.test_EOFS) ... FAIL
test_EOFS_with_file (test.test_eof.EOFTestCase.test_EOFS_with_file) ... ok
test_EOF_single_quote (test.test_eof.EOFTestCase.test_EOF_single_quote) ... ok
test_eof_with_line_continuation (test.test_eof.EOFTestCase.test_eof_with_line_continuation) ... FAIL
test_line_continuation_EOF (test.test_eof.EOFTestCase.test_line_continuation_EOF)
A continuation at the end of input must be an error; bpo2180. ... FAIL
test_line_continuation_EOF_from_file_bpo2180 (test.test_eof.EOFTestCase.test_line_continuation_EOF_from_file_bpo2180)
Ensure tok_nextc() does not add too many ending newlines. ... FAIL
======================================================================
FAIL: test_EOFS (test.test_eof.EOFTestCase.test_EOFS)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_eof.py", line 25, in test_EOFS
self.assertEqual(str(cm.exception), expect)
^^^^^^^^^^^
AssertionError: 'unte[18 chars]oted string literal (detected at line 3) (<string>, lines 1-3)' != 'unte[18 chars]oted string literal (detected at line 3) (<string>, line 1)'
- unterminated triple-quoted string literal (detected at line 3) (<string>, lines 1-3)
? - --
+ unterminated triple-quoted string literal (detected at line 3) (<string>, line 1)
======================================================================
FAIL: test_eof_with_line_continuation (test.test_eof.EOFTestCase.test_eof_with_line_continuation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/warnings_helper.py", line 57, in wrapper
return test(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_eof.py", line 91, in test_eof_with_line_continuation
self.assertEqual(str(cm.exception), expect)
^^^^^^^^^^^
AssertionError: 'unexpected end of file (EOF) in multi-line statement (<string>, line 1)' != 'unexpected EOF while parsing (<string>, line 1)'
- unexpected end of file (EOF) in multi-line statement (<string>, line 1)
+ unexpected EOF while parsing (<string>, line 1)
======================================================================
FAIL: test_line_continuation_EOF (test.test_eof.EOFTestCase.test_line_continuation_EOF)
A continuation at the end of input must be an error; bpo2180.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_eof.py", line 98, in test_line_continuation_EOF
self.assertEqual(str(cm.exception), expect)
^^^^^^^^^^^
AssertionError: 'unexpected end of file (EOF) in multi-line statement (<string>, line 1)' != 'unexpected EOF while parsing (<string>, line 1)'
- unexpected end of file (EOF) in multi-line statement (<string>, line 1)
+ unexpected EOF while parsing (<string>, line 1)
======================================================================
FAIL: test_line_continuation_EOF_from_file_bpo2180 (test.test_eof.EOFTestCase.test_line_continuation_EOF_from_file_bpo2180)
Ensure tok_nextc() does not add too many ending newlines.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_eof.py", line 132, in test_line_continuation_EOF_from_file_bpo2180
self.assertEqual(err[-2:], [
^^^^^^^^^^^
AssertionError: Lists differ: [' ^', 'SyntaxError: unexpected end of file (EOF) in multi-line statement'] != [' \\', 'SyntaxError: unexpected EOF while parsing']
First differing element 0:
' ^'
' \\'
- [' ^', 'SyntaxError: unexpected end of file (EOF) in multi-line statement']
+ [' \\', 'SyntaxError: unexpected EOF while parsing']
----------------------------------------------------------------------
Ran 6 tests in 0.295s
FAILED (failures=4)
0:00:00 load avg: 0.98 [1/1/1] test_eof failed (4 failures)
== Tests result: FAILURE ==
1 test failed:
test_eof
Total duration: 389 ms
Total tests: run=6 failures=4
Total test files: run=1/1 failed=1
Result: FAILURE
test test_eof failed
builder: pypy-c-jit-linux-x86-64 build #11855+
test: lib-python/3/test/test_eof.py::unmodified