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

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

== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 03:55:12) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2731589æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3376041726
0:00:00 load avg: 4.91 Run 1 test sequentially in a single process
0:00:00 load avg: 4.91 [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-32/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-32/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-32/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 0xf4734aa0> != <function TestEdgeCases.test_reentrancy.<locals>.bar at 0xf4734b08>

----------------------------------------------------------------------
Ran 29 tests in 0.025s

FAILED (failures=2)
0:00:00 load avg: 4.91 [1/1/1] test_sys_setprofile failed (2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_sys_setprofile

Total duration: 201 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-32 build #8380+
test: lib-python/3/test/test_sys_setprofile.py::unmodified