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

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

== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 06:28:39) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-4.19.90-2202.1.0.0136.oe1.aarch64-aarch64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_815385æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3606256696
0:00:00 load avg: 1.25 Run 1 test sequentially in a single process
0:00:00 load avg: 1.25 [1/1] test_codeop
test_filename (test.test_codeop.CodeopTests.test_filename) ... ok
test_incomplete (test.test_codeop.CodeopTests.test_incomplete) ... ERROR
test_incomplete_warning (test.test_codeop.CodeopTests.test_incomplete_warning) ... ok
test_invalid (test.test_codeop.CodeopTests.test_invalid) ... ok
test_invalid_exec (test.test_codeop.CodeopTests.test_invalid_exec) ... ok
test_invalid_warning (test.test_codeop.CodeopTests.test_invalid_warning) ... ok
test_syntax_errors (test.test_codeop.CodeopTests.test_syntax_errors) ... ok
test_valid (test.test_codeop.CodeopTests.test_valid) ... ok
test_warning (test.test_codeop.CodeopTests.test_warning) ... FAIL

======================================================================
ERROR: test_incomplete (test.test_codeop.CodeopTests.test_incomplete)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_codeop.py", line 226, in test_incomplete
    ai('a = f"""')
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_codeop.py", line 21, in assertIncomplete
    self.assertEqual(compile_command(str, symbol=symbol), None)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/codeop.py", line 111, in compile_command
    return _maybe_compile(_compile, source, filename, symbol)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/codeop.py", line 73, in _maybe_compile
    return compiler(source, filename, symbol, incomplete_input=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/codeop.py", line 89, in _compile
    return compile(source, filename, symbol, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<input>", line 1
    a = f"""
        ^
SyntaxError: unterminated triple-quoted f-string literal (detected at line 1)

======================================================================
FAIL: test_warning (test.test_codeop.CodeopTests.test_warning)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_codeop.py", line 283, in test_warning
    with warnings_helper.check_warnings(
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/support/warnings_helper.py", line 185, in _filterwarnings
    raise AssertionError("unhandled warning %s" % reraise[0])
AssertionError: unhandled warning {message : SyntaxWarning('"is" with a literal. Did you mean "=="?'), category : 'SyntaxWarning', filename : '<input>', lineno : 1, line : None}

----------------------------------------------------------------------
Ran 9 tests in 0.032s

FAILED (failures=1, errors=1)
0:00:00 load avg: 1.25 [1/1/1] test_codeop failed (1 error, 1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_codeop

Total duration: 172 ms
Total tests: run=9 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_codeop failed
builder: pypy-c-jit-linux-aarch64 build #2946+
test: lib-python/3/test/test_codeop.py::unmodified