lib-python/3/test/test_type_comments.py::unmodified
== PyPy 3.12.13 (37b9293223c4, Jul 09 2026, 17:47:31) [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_1099496æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 4224968422
0:00:00 load avg: 0.54 Run 1 test sequentially in a single process
0:00:00 load avg: 0.54 [1/1] test_type_comments
test_asynccomp (test.test_type_comments.TypeCommentTests.test_asynccomp) ... ok
test_asyncdef (test.test_type_comments.TypeCommentTests.test_asyncdef) ... ok
test_asyncvar (test.test_type_comments.TypeCommentTests.test_asyncvar) ... ok
test_forstmt (test.test_type_comments.TypeCommentTests.test_forstmt) ... ok
test_fstring (test.test_type_comments.TypeCommentTests.test_fstring) ... ERROR
test_func_type_input (test.test_type_comments.TypeCommentTests.test_func_type_input) ... ok
test_funcdef (test.test_type_comments.TypeCommentTests.test_funcdef) ... ok
test_ignores (test.test_type_comments.TypeCommentTests.test_ignores) ... ok
test_inappropriate_type_comments (test.test_type_comments.TypeCommentTests.test_inappropriate_type_comments)
Tests for inappropriately-placed type comments. ... ok
test_longargs (test.test_type_comments.TypeCommentTests.test_longargs) ... ok
test_matmul (test.test_type_comments.TypeCommentTests.test_matmul) ... ok
test_nonasciidef (test.test_type_comments.TypeCommentTests.test_nonasciidef) ... ok
test_redundantdef (test.test_type_comments.TypeCommentTests.test_redundantdef) ... ok
test_underscorednumber (test.test_type_comments.TypeCommentTests.test_underscorednumber) ... ok
test_vardecl (test.test_type_comments.TypeCommentTests.test_vardecl) ... ok
test_withstmt (test.test_type_comments.TypeCommentTests.test_withstmt) ... ok
======================================================================
ERROR: test_fstring (test.test_type_comments.TypeCommentTests.test_fstring)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_type_comments.py", line 235, in parse_all
yield self.parse(source, feature_version)
^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_type_comments.py", line 227, in parse
return ast.parse(source, type_comments=True,
^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ast.py", line 52, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<unknown>", line 2
f"{a}"
^^^^^^
SyntaxError: Format strings are only supported in Python (3, 6) and above.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_type_comments.py", line 275, in test_fstring
for tree in self.parse_all(fstring):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_type_comments.py", line 237, in parse_all
raise SyntaxError(str(err) + f" feature_version={feature_version}")
SyntaxError: Format strings are only supported in Python (3, 6) and above. (<unknown>, line 2) feature_version=(3, 4)
----------------------------------------------------------------------
Ran 16 tests in 0.019s
FAILED (errors=1)
0:00:00 load avg: 0.54 [1/1/1] test_type_comments failed (1 error)
== Tests result: FAILURE ==
1 test failed:
test_type_comments
Total duration: 87 ms
Total tests: run=16
Total test files: run=1/1 failed=1
Result: FAILURE
test test_type_comments failed
builder: pypy-c-jit-linux-x86-64 build #11857+
test: lib-python/3/test/test_type_comments.py::unmodified