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

Method test_stop_untrack

Lib/test/test_tracemalloc.py:1106–1112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1104 self.assertIsNone(self.get_traceback())
1105
1106 def test_stop_untrack(self):
1107 tracemalloc.start()
1108 self.track()
1109
1110 tracemalloc.stop()
1111 with self.assertRaises(RuntimeError):
1112 self.untrack()
1113
1114 @unittest.skipIf(_testcapi is None, 'need _testcapi')
1115 @threading_helper.requires_working_threading()

Callers

nothing calls this directly

Calls 5

trackMethod · 0.95
untrackMethod · 0.95
startMethod · 0.45
stopMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected