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 (421004c42b8a, Aug 21 2026, 03:30:19) [PyPy 8.0.0-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-arm64-arm-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-arm64/pytest/test_python_worker_84879æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 2663190010
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 5.83 Run 1 test sequentially in a single process
0:00:00 load avg: 5.83 [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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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.223s

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

== Tests result: FAILURE ==

1 test failed:
    test_eof

Total duration: 305 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-macos-arm64 build #1380+
test: lib-python/3/test/test_eof.py::unmodified