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

Method test_add

Lib/test/test_pstats.py:43–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.stats = pstats.Stats(stats_file)
42
43 def test_add(self):
44 stream = StringIO()
45 stats = pstats.Stats(stream=stream)
46 stats.add(self.stats, self.stats)
47
48 def test_dump_and_load_works_correctly(self):
49 temp_storage_new = tempfile.NamedTemporaryFile(delete=False)

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
StringIOClass · 0.90

Tested by

no test coverage detected