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

Method getline

Lib/test/test_tracemalloc.py:663–664  ·  view source on GitHub ↗
(filename, lineno)

Source from the content-addressed store, hash-verified

661 def test_format_traceback(self):
662 snapshot, snapshot2 = create_snapshots()
663 def getline(filename, lineno):
664 return ' <%s, %s>' % (filename, lineno)
665 with unittest.mock.patch('tracemalloc.linecache.getline',
666 side_effect=getline):
667 tb = snapshot.traces[0].traceback

Callers 13

_task_print_stackFunction · 0.45
_get_source_linesMethod · 0.45
test_getlineMethod · 0.45
test_getlineMethod · 0.45
test_clearcacheMethod · 0.45
linecache_get_lineMethod · 0.45
test_formatwarningMethod · 0.45
test_showwarningMethod · 0.45
idle_formatwarningFunction · 0.45
load_stackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected