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

Method test_stop_track

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

Source from the content-addressed store, hash-verified

1096 self.check_untrack(True)
1097
1098 def test_stop_track(self):
1099 tracemalloc.start()
1100 tracemalloc.stop()
1101
1102 with self.assertRaises(RuntimeError):
1103 self.track()
1104 self.assertIsNone(self.get_traceback())
1105
1106 def test_stop_untrack(self):
1107 tracemalloc.start()

Callers

nothing calls this directly

Calls 6

trackMethod · 0.95
get_tracebackMethod · 0.95
assertIsNoneMethod · 0.80
startMethod · 0.45
stopMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected