lib-python/3/test/test_sys_setprofile.py::unmodified
== PyPy 3.12.13 (421004c42b8a, Aug 21 2026, 05:17:54) [PyPy 8.0.0-alpha0 with MSC v.1941 64 bit (AMD64)]
== Windows-10-10.0.19045-SP0 little-endian
== Python build: release with_assert
== cwd: D:\SystemTemp\pytest\test_python_worker_5960æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2981894753
0:00:00 Run 1 test sequentially in a single process
0:00:00 [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 "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-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 "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-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 "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-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 0x000001dc90690728> != <function TestEdgeCases.test_reentrancy.<locals>.bar at 0x000001dc906db858>
----------------------------------------------------------------------
Ran 29 tests in 0.017s
FAILED (failures=2)
0:00:00 [1/1/1] test_sys_setprofile failed (2 failures)
== Tests result: FAILURE ==
1 test failed:
test_sys_setprofile
Total duration: 261 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-win-x86-64 build #2509+
test: lib-python/3/test/test_sys_setprofile.py::unmodified