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

Method test_is_tracing

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

Source from the content-addressed store, hash-verified

299 self.assertGreaterEqual(peak3 - peak2, obj_size)
300
301 def test_is_tracing(self):
302 tracemalloc.stop()
303 self.assertFalse(tracemalloc.is_tracing())
304
305 tracemalloc.start()
306 self.assertTrue(tracemalloc.is_tracing())
307
308 def test_snapshot(self):
309 obj, source = allocate_bytes(123)

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
assertTrueMethod · 0.80
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected