Skip to content

Ref tests failure on test_monitoring #103845

Closed
@sunmy2019

Description

@sunmy2019

Tested on cef542c, GCC 11.3 Ubuntu 22.04

./python -m test test_monitoring -R : 
Error Log

======================================================================
FAIL: test_c_call (test.test_monitoring.TestLineAndInstructionEvents.test_c_call)
----------------------------------------------------------------------
Lists differ:

First differing element 1:
('instruction', 'func2', 2)
('line', 'func2', 1)

Second list contains 3 additional elements.
First extra element 12:
('instruction', 'func2', 42)

  [('line', 'check_events', 10),
+  ('line', 'func2', 1),
   ('instruction', 'func2', 2),
   ('instruction', 'func2', 4),
+  ('line', 'func2', 2),
   ('instruction', 'func2', 6),
   ('instruction', 'func2', 8),
   ('instruction', 'func2', 28),
   ('instruction', 'func2', 30),
   ('instruction', 'func2', 38),
+  ('line', 'func2', 3),
   ('instruction', 'func2', 40),
   ('instruction', 'func2', 42),
   ('instruction', 'func2', 44),
   ('line', 'check_events', 11)]

======================================================================
FAIL: test_simple (test.test_monitoring.TestLineAndInstructionEvents.test_simple)
----------------------------------------------------------------------
Lists differ:

First differing element 1:
('instruction', 'func1', 2)
('line', 'func1', 1)

Second list contains 3 additional elements.
First extra element 9:
('instruction', 'func1', 12)

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

======================================================================
FAIL: test_try_except (test.test_monitoring.TestLineAndInstructionEvents.test_try_except)
----------------------------------------------------------------------
Lists differ:

First differing element 1:
('instruction', 'func3', 2)
('line', 'func3', 1)

Second list contains 6 additional elements.
First extra element 15:
('instruction', 'func3', 28)

  [('line', 'check_events', 10),
+  ('line', 'func3', 1),
   ('instruction', 'func3', 2),
+  ('line', 'func3', 2),
   ('instruction', 'func3', 4),
   ('instruction', 'func3', 6),
+  ('line', 'func3', 3),
   ('instruction', 'func3', 8),
   ('instruction', 'func3', 18),
   ('instruction', 'func3', 20),
+  ('line', 'func3', 4),
   ('instruction', 'func3', 22),
+  ('line', 'func3', 5),
   ('instruction', 'func3', 24),
   ('instruction', 'func3', 26),
   ('instruction', 'func3', 28),
+  ('line', 'func3', 6),
   ('instruction', 'func3', 30),
   ('instruction', 'func3', 32),
   ('instruction', 'func3', 34),
   ('line', 'check_events', 11)]

----------------------------------------------------------------------
Ran 42 tests in 0.015s

FAILED (failures=3)

Looks like the behavior is changed when using -R :?

CC: @markshannon

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions