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

Method test_large_function

Lib/test/test_sys_settrace.py:2797–2809  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2795 no_jump_without_trace_function()
2796
2797 def test_large_function(self):
2798 d = {}
2799 exec("""def f(output): # line 0
2800 x = 0 # line 1
2801 y = 1 # line 2
2802 ''' # line 3
2803 %s # lines 4-1004
2804 ''' # line 1005
2805 x += 1 # line 1006
2806 output.append(x) # line 1007
2807 return""" % ('\n' * 1000,), d)
2808 f = d['f']
2809 self.run_test(f, 2, 1007, [0], warning=(RuntimeWarning, self.unbound_locals))
2810
2811 def test_jump_to_firstlineno(self):
2812 # This tests that PDB can jump back to the first line in a

Callers

nothing calls this directly

Calls 1

run_testMethod · 0.95

Tested by

no test coverage detected