lib-python/3/test/test_frame.py::unmodified
== PyPy 3.12.13 (f591fa0fd4db, Jul 06 2026, 20:11:58) [PyPy 7.3.24-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_3641580æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 306582212
0:00:00 load avg: 0.76 Run 1 test sequentially in a single process
0:00:00 load avg: 0.76 [1/1] test_frame
test_clear_does_not_clear_specials (test.test_frame.ClearTest.test_clear_does_not_clear_specials) ... ok
test_clear_executing (test.test_frame.ClearTest.test_clear_executing) ... ok
test_clear_executing_generator (test.test_frame.ClearTest.test_clear_executing_generator) ... ok
test_clear_generator (test.test_frame.ClearTest.test_clear_generator) ... ok
test_clear_locals (test.test_frame.ClearTest.test_clear_locals) ... ok
test_clear_refcycles (test.test_frame.ClearTest.test_clear_refcycles) ... skipped 'implementation detail specific to cpython'
test_lineno_with_tracing (test.test_frame.ClearTest.test_lineno_with_tracing) ... ok
test_clear_locals (test.test_frame.FrameAttrsTest.test_clear_locals) ... ok
test_f_lineno_del_segfault (test.test_frame.FrameAttrsTest.test_f_lineno_del_segfault) ... ok
test_locals (test.test_frame.FrameAttrsTest.test_locals) ... ok
test_locals_clear_locals (test.test_frame.FrameAttrsTest.test_locals_clear_locals) ... ok
test_repr (test.test_frame.ReprTest.test_repr) ... ok
test_frame_fback_api (test.test_frame.TestCAPI.test_frame_fback_api)
Test that accessing `f_back` does not cause a segmentation fault on ... skipped 'need _testcapi'
test_frame_get_generator (test.test_frame.TestCAPI.test_frame_get_generator) ... skipped 'need _testcapi'
test_frame_getters (test.test_frame.TestCAPI.test_frame_getters) ... skipped 'need _testcapi'
test_getvar (test.test_frame.TestCAPI.test_getvar) ... skipped 'need _testcapi'
test_entry_frames_are_invisible_during_teardown (test.test_frame.TestIncompleteFrameAreInvisible.test_entry_frames_are_invisible_during_teardown) ... ERROR
test_issue95818 (test.test_frame.TestIncompleteFrameAreInvisible.test_issue95818) ... FAIL
test_sneaky_frame_object (test.test_frame.TestIncompleteFrameAreInvisible.test_sneaky_frame_object) ... skipped 'implementation detail specific to cpython'
test_sneaky_frame_object_teardown (test.test_frame.TestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown) ... skipped 'implementation detail specific to cpython'
======================================================================
ERROR: test_entry_frames_are_invisible_during_teardown (test.test_frame.TestIncompleteFrameAreInvisible.test_entry_frames_are_invisible_during_teardown)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_frame.py", line 393, in test_entry_frames_are_invisible_during_teardown
self.assertIs(catcher.unraisable.exc_type, TypeError)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'exc_type'
======================================================================
FAIL: test_issue95818 (test.test_frame.TestIncompleteFrameAreInvisible.test_issue95818)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_frame.py", line 270, in test_issue95818
assert_python_ok("-c", code)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/script_helper.py", line 166, in assert_python_ok
return _assert_python(True, *args, **env_vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/script_helper.py", line 151, in _assert_python
res.fail(cmd_line)
^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/script_helper.py", line 76, in fail
raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy3.12-c', '-X', 'faulthandler', '-I', '-c', '\nimport gc\n\ngc.set_threshold(1,1,1)\nclass GCHello:\n def __del__(self):\n print("Destroyed from gc")\n\ndef gen():\n yield\n\nfd = open(\'/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_frame.py\')\nl = [fd, GCHello()]\nl.append(l)\ndel fd\ndel l\ngen()\n']
stdout:
---
---
stderr:
---
Traceback (most recent call last):
File "<string>", line 4, in <module>
AttributeError: module 'gc' has no attribute 'set_threshold'
---
----------------------------------------------------------------------
Ran 20 tests in 0.127s
FAILED (failures=1, errors=1, skipped=7)
0:00:00 load avg: 0.76 [1/1/1] test_frame failed (1 error, 1 failure)
== Tests result: FAILURE ==
1 test failed:
test_frame
Total duration: 216 ms
Total tests: run=20 failures=1 skipped=7
Total test files: run=1/1 failed=1
Result: FAILURE
test test_frame failed
builder: pypy-c-jit-linux-x86-64 build #11848+
test: lib-python/3/test/test_frame.py::unmodified