Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_eof.py::unmodified

== PyPy 3.12.13 (9b9b9bd54261, Aug 23 2026, 03:30:12) [PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)]
== Linux-6.12.90+deb13-amd64-i686-with-glibc2.28 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_310705æ
== CPU count: 9
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1935621166
0:00:00 load avg: 1.33 Run 1 test sequentially in a single process
0:00:00 load avg: 1.33 [1/1] test_eof
test_EOFS (test.test_eof.EOFTestCase.test_EOFS) ... ok
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) ... ok
test_line_continuation_EOF (test.test_eof.EOFTestCase.test_line_continuation_EOF)
A continuation at the end of input must be an error; bpo2180. ... ok
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_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 "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_eof.py", line 139, 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 end of file (EOF) in multi-line statement']

First differing element 0:
'     ^'
'    \\'

- ['     ^', 'SyntaxError: unexpected end of file (EOF) in multi-line statement']
?       ^^

+ ['    \\', 'SyntaxError: unexpected end of file (EOF) in multi-line statement']
?       ^^


----------------------------------------------------------------------
Ran 6 tests in 0.285s

FAILED (failures=1)
0:00:00 load avg: 1.33 [1/1/1] test_eof failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_eof

Total duration: 373 ms
Total tests: run=6 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_eof failed
builder: pypy-c-jit-linux-x86-32 build #8458+
test: lib-python/3/test/test_eof.py::unmodified