MCPcopy Index your code
hub / github.com/python/cpython / check_events

Method check_events

Lib/test/test_monitoring.py:787–789  ·  view source on GitHub ↗
(self, func, expected, tool=TEST_TOOL, recorders=(ExceptionRecorder,))

Source from the content-addressed store, hash-verified

785 sys.monitoring.register_callback(tool, recorder.event_type, None)
786
787 def check_events(self, func, expected, tool=TEST_TOOL, recorders=(ExceptionRecorder,)):
788 events = self.get_events(func, tool, recorders)
789 self.assertEqual(events, expected)
790
791 def check_balanced(self, func, recorders):
792 events = self.get_events(func, TEST_TOOL, recorders)

Callers 15

test_just_passMethod · 0.45
test_just_raiseMethod · 0.45
test_just_callMethod · 0.45
test_caughtMethod · 0.45
test_nested_callMethod · 0.45
test_simpleMethod · 0.45
test_c_callMethod · 0.45
test_try_exceptMethod · 0.45
test_simpleMethod · 0.45
test_c_callMethod · 0.45

Calls 2

get_eventsMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected