lib-python/3/test/test_sys_setprofile.py::unmodified
== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 04:18:51) [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_1012478æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3844927629
0:00:00 load avg: 0.62 Run 1 test sequentially in a single process
0:00:00 load avg: 0.62 [1/1] test_sys_setprofile
test_caught_exception (test.test_sys_setprofile.ProfileHookTestCase.test_caught_exception) ... ok
test_caught_nested_exception (test.test_sys_setprofile.ProfileHookTestCase.test_caught_nested_exception) ... ok
test_distant_exception (test.test_sys_setprofile.ProfileHookTestCase.test_distant_exception) ... ok
test_exception (test.test_sys_setprofile.ProfileHookTestCase.test_exception) ... ok
test_exception_in_except_clause (test.test_sys_setprofile.ProfileHookTestCase.test_exception_in_except_clause) ... ok
test_exception_propagation (test.test_sys_setprofile.ProfileHookTestCase.test_exception_propagation) ... ok
test_generator (test.test_sys_setprofile.ProfileHookTestCase.test_generator) ... ok
test_nested_exception (test.test_sys_setprofile.ProfileHookTestCase.test_nested_exception) ... ok
test_raise (test.test_sys_setprofile.ProfileHookTestCase.test_raise) ... ok
test_raise_reraise (test.test_sys_setprofile.ProfileHookTestCase.test_raise_reraise) ... ok
test_raise_twice (test.test_sys_setprofile.ProfileHookTestCase.test_raise_twice) ... ok
test_simple (test.test_sys_setprofile.ProfileHookTestCase.test_simple) ... ok
test_stop_iteration (test.test_sys_setprofile.ProfileHookTestCase.test_stop_iteration) ... ok
test_unfinished_generator (test.test_sys_setprofile.ProfileHookTestCase.test_unfinished_generator) ... FAIL
test_basic_exception (test.test_sys_setprofile.ProfileSimulatorTestCase.test_basic_exception) ... ok
test_caught_exception (test.test_sys_setprofile.ProfileSimulatorTestCase.test_caught_exception) ... ok
test_distant_exception (test.test_sys_setprofile.ProfileSimulatorTestCase.test_distant_exception) ... ok
test_simple (test.test_sys_setprofile.ProfileSimulatorTestCase.test_simple) ... ok
test_unbound_method (test.test_sys_setprofile.ProfileSimulatorTestCase.test_unbound_method) ... ok
test_unbound_method_invalid_args (test.test_sys_setprofile.ProfileSimulatorTestCase.test_unbound_method_invalid_args) ... ok
test_unbound_method_invalid_keyword_args (test.test_sys_setprofile.ProfileSimulatorTestCase.test_unbound_method_invalid_keyword_args) ... ok
test_unbound_method_no_args (test.test_sys_setprofile.ProfileSimulatorTestCase.test_unbound_method_no_args) ... ok
test_unbound_method_no_keyword_args (test.test_sys_setprofile.ProfileSimulatorTestCase.test_unbound_method_no_keyword_args) ... ok
test_method_with_c_function (test.test_sys_setprofile.TestEdgeCases.test_method_with_c_function) ... ok
test_profile_after_trace_opcodes (test.test_sys_setprofile.TestEdgeCases.test_profile_after_trace_opcodes) ... ok
test_reentrancy (test.test_sys_setprofile.TestEdgeCases.test_reentrancy) ... FAIL
test_same_object (test.test_sys_setprofile.TestEdgeCases.test_same_object) ... ok
test_empty (test.test_sys_setprofile.TestGetProfile.test_empty) ... ok
test_setget (test.test_sys_setprofile.TestGetProfile.test_setget) ... ok
======================================================================
FAIL: test_unfinished_generator (test.test_sys_setprofile.ProfileHookTestCase.test_unfinished_generator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_sys_setprofile.py", line 267, in test_unfinished_generator
self.check_events(g, [(1, 'call', g_ident),
^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_sys_setprofile.py", line 95, in check_events
self.fail("Expected events:\n%s\nReceived events:\n%s"
^^^^
AssertionError: Expected events:
[(1, 'call', (262, 'g')),
(2, 'call', (259, 'f')),
(2, 'return', (259, 'f')),
(2, 'call', (259, 'f')),
(2, 'return', (259, 'f')),
(1, 'return', (262, 'g'))]
Received events:
[(1, 'call', (262, 'g')),
(2, 'call', (259, 'f')),
(2, 'return', (259, 'f')),
(1, 'return', (262, 'g'))]
======================================================================
FAIL: test_reentrancy (test.test_sys_setprofile.TestEdgeCases.test_reentrancy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_sys_setprofile.py", line 459, in test_reentrancy
self.assertEqual(sys.getprofile(), bar)
^^^^^^^^^^^
AssertionError: <function TestEdgeCases.test_reentrancy.<locals>.foo at 0x00007f37f3dec7f0> != <function TestEdgeCases.test_reentrancy.<locals>.bar at 0x00007f37f3dec8b8>
----------------------------------------------------------------------
Ran 29 tests in 0.008s
FAILED (failures=2)
0:00:00 load avg: 0.62 [1/1/1] test_sys_setprofile failed (2 failures)
== Tests result: FAILURE ==
1 test failed:
test_sys_setprofile
Total duration: 77 ms
Total tests: run=29 failures=2
Total test files: run=1/1 failed=1
Result: FAILURE
test test_sys_setprofile failed
builder: pypy-c-jit-linux-x86-64 build #11855+
test: lib-python/3/test/test_sys_setprofile.py::unmodified