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

Method test_disable_event

Lib/test/test_monitoring.py:2422–2428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2420 sys.monitoring.set_events(TEST_TOOL, 0)
2421
2422 def test_disable_event(self):
2423 for expected, event, function, *args in self.cases:
2424 offset = 0
2425 self.codelike = _testcapi.CodeLike(2)
2426 with self.subTest(function.__name__):
2427 args_ = (self.codelike, 0) + tuple(args)
2428 self.check_disable(event, function, args_, expected)
2429
2430 def test_enter_scope_two_events(self):
2431 try:

Callers

nothing calls this directly

Calls 2

check_disableMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected