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

Method tearDown

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

Source from the content-addressed store, hash-verified

134 sys.monitoring.use_tool_id(TEST_TOOL3, "test3 " + self.__class__.__name__)
135
136 def tearDown(self):
137 # Check that test hasn't left monitoring on.
138 for tool in range(6):
139 self.assertEqual(sys.monitoring.get_events(tool), 0)
140 sys.monitoring.free_tool_id(TEST_TOOL)
141 sys.monitoring.free_tool_id(TEST_TOOL2)
142 sys.monitoring.free_tool_id(TEST_TOOL3)
143
144
145class MonitoringCountTest(MonitoringTestBase, unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
get_eventsMethod · 0.45

Tested by

no test coverage detected