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

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

== PyPy 3.12.14 (0f53d194ef9b, Sep 08 2026, 03:30:10) [PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)]
== Linux-6.12.90+deb13-amd64-i686-with-glibc2.28 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_108830æ
== CPU count: 9
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 4133013763
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_monitoring
test_async_for (test.test_monitoring.ExceptionMonitoringTest.test_async_for) ... ok
test_explicit_reraise (test.test_monitoring.ExceptionMonitoringTest.test_explicit_reraise) ... ok
test_explicit_reraise_named (test.test_monitoring.ExceptionMonitoringTest.test_explicit_reraise_named) ... ok
test_implicit_reraise (test.test_monitoring.ExceptionMonitoringTest.test_implicit_reraise) ... ok
test_implicit_reraise_named (test.test_monitoring.ExceptionMonitoringTest.test_implicit_reraise_named) ... ok
test_implicit_stop_iteration (test.test_monitoring.ExceptionMonitoringTest.test_implicit_stop_iteration) ... ok
test_simple_try_except (test.test_monitoring.ExceptionMonitoringTest.test_simple_try_except) ... ok
test_throw (test.test_monitoring.ExceptionMonitoringTest.test_throw) ... ok
test_try_finally (test.test_monitoring.ExceptionMonitoringTest.test_try_finally) ... ok
test_branch (test.test_monitoring.LineMonitoringTest.test_branch) ... ok
test_linear (test.test_monitoring.LineMonitoringTest.test_linear) ... ok
test_lines_loop (test.test_monitoring.LineMonitoringTest.test_lines_loop) ... ok
test_lines_single (test.test_monitoring.LineMonitoringTest.test_lines_single) ... ok
test_lines_two (test.test_monitoring.LineMonitoringTest.test_lines_two) ... ok
test_try_except (test.test_monitoring.LineMonitoringTest.test_try_except) ... ok
test_has_objects (test.test_monitoring.MonitoringBasicTest.test_has_objects) ... ok
test_tool (test.test_monitoring.MonitoringBasicTest.test_tool) ... ok
test_c_return_count (test.test_monitoring.MonitoringCountTest.test_c_return_count) ... ok
test_call_count (test.test_monitoring.MonitoringCountTest.test_call_count) ... ok
test_resume_count (test.test_monitoring.MonitoringCountTest.test_resume_count) ... ok
test_return_count (test.test_monitoring.MonitoringCountTest.test_return_count) ... ok
test_start_count (test.test_monitoring.MonitoringCountTest.test_start_count) ... ok
test_caught (test.test_monitoring.MonitoringEventsTest.test_caught) ... ok
test_just_call (test.test_monitoring.MonitoringEventsTest.test_just_call) ... ok
test_just_pass (test.test_monitoring.MonitoringEventsTest.test_just_pass) ... ok
test_just_raise (test.test_monitoring.MonitoringEventsTest.test_just_raise) ... ok
test_nested_call (test.test_monitoring.MonitoringEventsTest.test_nested_call) ... ok
test_disable (test.test_monitoring.MontoringDisableAndRestartTest.test_disable) ... ok
test_restart (test.test_monitoring.MontoringDisableAndRestartTest.test_restart) ... ok
test_three_same (test.test_monitoring.MultipleMonitorsTest.test_three_same) ... ok
test_two_different (test.test_monitoring.MultipleMonitorsTest.test_two_different) ... ok
test_two_same (test.test_monitoring.MultipleMonitorsTest.test_two_same) ... ok
test_two_with_disable (test.test_monitoring.MultipleMonitorsTest.test_two_with_disable) ... ok
test_with_instruction_event (test.test_monitoring.MultipleMonitorsTest.test_with_instruction_event)
Test that the second tool can set events with instruction events set by the first tool. ... ok
test_balanced (test.test_monitoring.SimulateProfileTest.test_balanced) ... skipped "PyPy: list.append etc. expose as method/function, not builtin_function_or_method (cpython_differences.rst 'method-types'), so PY_CALLABLES misclassifies them as Python calls"
test_frame_stack (test.test_monitoring.SimulateProfileTest.test_frame_stack) ... skipped "PyPy: list.append etc. expose as method/function, not builtin_function_or_method (cpython_differences.rst 'method-types'), so PY_CALLABLES misclassifies them as Python calls"
test_except_star (test.test_monitoring.TestBranchAndJumpEvents.test_except_star) ... ok
test_loop (test.test_monitoring.TestBranchAndJumpEvents.test_loop) ... ok
test_disable_illegal_events (test.test_monitoring.TestDisable.test_disable_illegal_events) ... ok
test_disable_legal_events (test.test_monitoring.TestDisable.test_disable_legal_events) ... ok
test_call_then_instruction (test.test_monitoring.TestInstallIncrementally.test_call_then_instruction) ... ok
test_instruction_then_call (test.test_monitoring.TestInstallIncrementally.test_instruction_then_call) ... ok
test_instruction_then_line (test.test_monitoring.TestInstallIncrementally.test_instruction_then_line) ... FAIL
test_line_then_instruction (test.test_monitoring.TestInstallIncrementally.test_line_then_instruction) ... FAIL
test_c_call (test.test_monitoring.TestLineAndInstructionEvents.test_c_call) ... FAIL
test_simple (test.test_monitoring.TestLineAndInstructionEvents.test_simple) ... FAIL
test_try_except (test.test_monitoring.TestLineAndInstructionEvents.test_try_except) ... FAIL
test_with_restart (test.test_monitoring.TestLineAndInstructionEvents.test_with_restart) ... FAIL
test_attr (test.test_monitoring.TestLoadSuperAttr.test_attr) ... skipped 'PyPy: no LOAD_SUPER_ATTR opcode, super() compiles via plain CALL'
test_method_call (test.test_monitoring.TestLoadSuperAttr.test_method_call) ... skipped 'PyPy: no LOAD_SUPER_ATTR opcode, super() compiles via plain CALL'
test_method_call_error (test.test_monitoring.TestLoadSuperAttr.test_method_call_error) ... skipped 'PyPy: no LOAD_SUPER_ATTR opcode, super() compiles via plain CALL'
test_vs_other_type_call (test.test_monitoring.TestLoadSuperAttr.test_vs_other_type_call) ... skipped 'PyPy: no LOAD_SUPER_ATTR opcode, super() compiles via plain CALL'
test_c_call (test.test_monitoring.TestLocalEvents.test_c_call) ... ok
test_set_non_local_event (test.test_monitoring.TestLocalEvents.test_set_non_local_event) ... ok
test_simple (test.test_monitoring.TestLocalEvents.test_simple) ... ok
test_try_except (test.test_monitoring.TestLocalEvents.test_try_except) ... ok
test_c_call (test.test_monitoring.TestManyEvents.test_c_call) ... ok
test_simple (test.test_monitoring.TestManyEvents.test_simple) ... ok
test_try_except (test.test_monitoring.TestManyEvents.test_try_except) ... ok
test_105162 (test.test_monitoring.TestRegressions.test_105162) ... ok
test_108390 (test.test_monitoring.TestRegressions.test_108390) ... ok
test_call_function_ex (test.test_monitoring.TestRegressions.test_call_function_ex) ... ok
test_gh108976 (test.test_monitoring.TestRegressions.test_gh108976) ... ok
test_global (test.test_monitoring.TestSetGetEvents.test_global) ... ok
test_local (test.test_monitoring.TestSetGetEvents.test_local) ... ok
test_get_local_events_uninitialized (test.test_monitoring.TestUninitialized.test_get_local_events_uninitialized) ... ok

======================================================================
FAIL: test_instruction_then_line (test.test_monitoring.TestInstallIncrementally.test_instruction_then_line)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1305, in test_instruction_then_line
    self.check_events(self.func1,
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1282, in check_events
    self.assertIn(line, event_list)
         ^^^^^^^^
AssertionError: ('instruction', 'func1', 6) not found in [('instruction', 'check_events', 90), ('instruction', 'check_events', 92), ('instruction', 'check_events', 66), ('instruction', 'check_events', 68), ('instruction', 'check_events', 70), ('instruction', 'check_events', 72), ('instruction', 'check_events', 74), ('instruction', 'check_events', 76), ('instruction', 'check_events', 78), ('instruction', 'check_events', 80), ('instruction', 'check_events', 82), ('instruction', 'check_events', 84), ('instruction', 'check_events', 86), ('instruction', '__init__', 0), ('instruction', '__init__', 2), ('instruction', '__init__', 4), ('instruction', '__init__', 6), ('instruction', 'check_events', 88), ('instruction', '_test_audit_hook', 0), ('instruction', 'check_events', 90), ('instruction', 'check_events', 92), ('line', 'check_events', 8), ('instruction', 'check_events', 66), ('line', 'check_events', 10), ('instruction', 'check_events', 94), ('instruction', 'check_events', 96), ('line', 'func1', 2), ('instruction', 'func1', 0), ('instruction', 'func1', 2), ('instruction', 'func1', 4), ('instruction', 'check_events', 98), ('line', 'check_events', 11), ('instruction', 'check_events', 100), ('instruction', 'check_events', 102), ('instruction', 'check_events', 104), ('instruction', 'check_events', 106), ('instruction', 'check_events', 108), ('instruction', 'check_events', 110)]

======================================================================
FAIL: test_line_then_instruction (test.test_monitoring.TestInstallIncrementally.test_line_then_instruction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1300, in test_line_then_instruction
    self.check_events(self.func1,
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1282, in check_events
    self.assertIn(line, event_list)
         ^^^^^^^^
AssertionError: ('instruction', 'func1', 6) not found in [('line', 'check_events', 8), ('line', 'check_events', 9), ('line', '__init__', 1), ('line', '_test_audit_hook', 1), ('instruction', 'check_events', 90), ('instruction', 'check_events', 92), ('line', 'check_events', 8), ('instruction', 'check_events', 66), ('line', 'check_events', 10), ('instruction', 'check_events', 94), ('instruction', 'check_events', 96), ('line', 'func1', 2), ('instruction', 'func1', 0), ('instruction', 'func1', 2), ('instruction', 'func1', 4), ('instruction', 'check_events', 98), ('line', 'check_events', 11), ('instruction', 'check_events', 100), ('instruction', 'check_events', 102), ('instruction', 'check_events', 104), ('instruction', 'check_events', 106), ('instruction', 'check_events', 108), ('instruction', 'check_events', 110)]

======================================================================
FAIL: test_c_call (test.test_monitoring.TestLineAndInstructionEvents.test_c_call)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1159, in test_c_call
    self.check_events(func2, recorders = LINE_AND_INSTRUCTION_RECORDERS, expected = expected)
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 744, in check_events
    self.assertEqual(events, expected)
         ^^^^^^^^^^^
AssertionError: Lists differ: [('li[379 chars] 18), ('line', 'get_events', 11)] != [('li[379 chars] 18), ('instruction', 'func2', 20), ('line', 'get_events', 11)]

First differing element 14:
('line', 'get_events', 11)
('instruction', 'func2', 20)

Second list contains 1 additional elements.
First extra element 15:
('line', 'get_events', 11)

  [('line', 'get_events', 10),
   ('line', 'func2', 1),
   ('instruction', 'func2', 0),
   ('instruction', 'func2', 2),
   ('line', 'func2', 2),
   ('instruction', 'func2', 4),
   ('instruction', 'func2', 6),
   ('instruction', 'func2', 8),
   ('instruction', 'func2', 10),
   ('instruction', 'func2', 12),
   ('line', 'func2', 3),
   ('instruction', 'func2', 14),
   ('instruction', 'func2', 16),
   ('instruction', 'func2', 18),
+  ('instruction', 'func2', 20),
   ('line', 'get_events', 11)]

======================================================================
FAIL: test_simple (test.test_monitoring.TestLineAndInstructionEvents.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1114, in test_simple
    self.check_events(func1, recorders = LINE_AND_INSTRUCTION_RECORDERS, expected = expected)
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 744, in check_events
    self.assertEqual(events, expected)
         ^^^^^^^^^^^
AssertionError: Lists differ: [('li[289 chars] 12), ('line', 'get_events', 11)] != [('li[289 chars] 12), ('instruction', 'func1', 14), ('line', 'get_events', 11)]

First differing element 11:
('line', 'get_events', 11)
('instruction', 'func1', 14)

Second list contains 1 additional elements.
First extra element 12:
('line', 'get_events', 11)

  [('line', 'get_events', 10),
   ('line', 'func1', 1),
   ('instruction', 'func1', 0),
   ('instruction', 'func1', 2),
   ('line', 'func1', 2),
   ('instruction', 'func1', 4),
   ('instruction', 'func1', 6),
   ('line', 'func1', 3),
   ('instruction', 'func1', 8),
   ('instruction', 'func1', 10),
   ('instruction', 'func1', 12),
+  ('instruction', 'func1', 14),
   ('line', 'get_events', 11)]

======================================================================
FAIL: test_try_except (test.test_monitoring.TestLineAndInstructionEvents.test_try_except)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1220, in test_try_except
    self.check_events(func3, recorders = LINE_AND_INSTRUCTION_RECORDERS, expected = expected)
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 744, in check_events
    self.assertEqual(events, expected)
         ^^^^^^^^^^^
AssertionError: Lists differ: [('li[565 chars] 34), ('line', 'get_events', 11)] != [('li[565 chars] 34), ('instruction', 'func3', 36), ('line', 'get_events', 11)]

First differing element 21:
('line', 'get_events', 11)
('instruction', 'func3', 36)

Second list contains 1 additional elements.
First extra element 22:
('line', 'get_events', 11)

  [('line', 'get_events', 10),
   ('line', 'func3', 1),
   ('instruction', 'func3', 0),
   ('line', 'func3', 2),
   ('instruction', 'func3', 2),
   ('instruction', 'func3', 4),
   ('line', 'func3', 3),
   ('instruction', 'func3', 6),
   ('instruction', 'func3', 8),
   ('instruction', 'func3', 10),
   ('line', 'func3', 4),
   ('instruction', 'func3', 12),
   ('line', 'func3', 5),
   ('instruction', 'func3', 14),
   ('instruction', 'func3', 16),
   ('instruction', 'func3', 18),
   ('instruction', 'func3', 20),
   ('line', 'func3', 6),
   ('instruction', 'func3', 30),
   ('instruction', 'func3', 32),
   ('instruction', 'func3', 34),
+  ('instruction', 'func3', 36),
   ('line', 'get_events', 11)]

======================================================================
FAIL: test_with_restart (test.test_monitoring.TestLineAndInstructionEvents.test_with_restart)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 1259, in test_with_restart
    self.check_events(func1, recorders = LINE_AND_INSTRUCTION_RECORDERS, expected = expected)
         ^^^^^^^^^^^^
  File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_monitoring.py", line 744, in check_events
    self.assertEqual(events, expected)
         ^^^^^^^^^^^
AssertionError: Lists differ: [('li[289 chars] 12), ('line', 'get_events', 11)] != [('li[289 chars] 12), ('instruction', 'func1', 14), ('line', 'get_events', 11)]

First differing element 11:
('line', 'get_events', 11)
('instruction', 'func1', 14)

Second list contains 1 additional elements.
First extra element 12:
('line', 'get_events', 11)

  [('line', 'get_events', 10),
   ('line', 'func1', 1),
   ('instruction', 'func1', 0),
   ('instruction', 'func1', 2),
   ('line', 'func1', 2),
   ('instruction', 'func1', 4),
   ('instruction', 'func1', 6),
   ('line', 'func1', 3),
   ('instruction', 'func1', 8),
   ('instruction', 'func1', 10),
   ('instruction', 'func1', 12),
+  ('instruction', 'func1', 14),
   ('line', 'get_events', 11)]

----------------------------------------------------------------------
Ran 66 tests in 0.027s

FAILED (failures=6, skipped=6)
0:00:00 load avg: 0.62 [1/1/1] test_monitoring failed (6 failures)

== Tests result: FAILURE ==

1 test failed:
    test_monitoring

Total duration: 198 ms
Total tests: run=66 failures=6 skipped=6
Total test files: run=1/1 failed=1
Result: FAILURE
[('line', 'get_events', 10), ('line', 'func2', 1), ('instruction', 'func2', 0), ('instruction', 'func2', 2), ('line', 'func2', 2), ('instruction', 'func2', 4), ('instruction', 'func2', 6), ('instruction', 'func2', 8), ('instruction', 'func2', 10), ('instruction', 'func2', 12), ('line', 'func2', 3), ('instruction', 'func2', 14), ('instruction', 'func2', 16), ('instruction', 'func2', 18), ('line', 'get_events', 11)]
[('line', 'get_events', 10), ('line', 'func1', 1), ('instruction', 'func1', 0), ('instruction', 'func1', 2), ('line', 'func1', 2), ('instruction', 'func1', 4), ('instruction', 'func1', 6), ('line', 'func1', 3), ('instruction', 'func1', 8), ('instruction', 'func1', 10), ('instruction', 'func1', 12), ('line', 'get_events', 11)]
[('line', 'get_events', 10), ('line', 'func3', 1), ('instruction', 'func3', 0), ('line', 'func3', 2), ('instruction', 'func3', 2), ('instruction', 'func3', 4), ('line', 'func3', 3), ('instruction', 'func3', 6), ('instruction', 'func3', 8), ('instruction', 'func3', 10), ('line', 'func3', 4), ('instruction', 'func3', 12), ('line', 'func3', 5), ('instruction', 'func3', 14), ('instruction', 'func3', 16), ('instruction', 'func3', 18), ('instruction', 'func3', 20), ('line', 'func3', 6), ('instruction', 'func3', 30), ('instruction', 'func3', 32), ('instruction', 'func3', 34), ('line', 'get_events', 11)]
[('line', 'get_events', 10), ('line', 'func1', 1), ('instruction', 'func1', 0), ('instruction', 'func1', 2), ('line', 'func1', 2), ('instruction', 'func1', 4), ('instruction', 'func1', 6), ('line', 'func1', 3), ('instruction', 'func1', 8), ('instruction', 'func1', 10), ('instruction', 'func1', 12), ('line', 'get_events', 11)]
test test_monitoring failed
builder: pypy-c-jit-linux-x86-32 build #8493+
test: lib-python/3/test/test_monitoring.py::unmodified