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

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

== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 03:54:00) [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_54913æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1373673654
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 6.98 Run 1 test sequentially in a single process
0:00:00 load avg: 6.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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/support/warnings_helper.py", line 57, in wrapper
    return test(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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.219s

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

== Tests result: FAILURE ==

1 test failed:
    test_eof

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