| 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 |