@@ -169,11 +169,14 @@ def sourcerange(top, bottom):
169169istest (inspect .istraceback , 'git.ex[2]' )
170170istest (inspect .isframe , 'mod.fr' )
171171
172- test (len (git .tr ) == 2 , 'trace() length' )
173- test (git .tr [0 ][1 :] == (TESTFN , 9 , 'spam' , [' eggs(b + d, c + f)\n ' ], 0 ),
174- 'trace() row 1' )
175- test (git .tr [1 ][1 :] == (TESTFN , 18 , 'eggs' , [' q = y / 0\n ' ], 0 ),
172+ test (len (git .tr ) == 3 , 'trace() length' )
173+ test (git .tr [0 ][1 :] == (TESTFN , 46 , 'argue' ,
174+ [' self.tr = inspect.trace()\n ' ], 0 ),
176175 'trace() row 2' )
176+ test (git .tr [1 ][1 :] == (TESTFN , 9 , 'spam' , [' eggs(b + d, c + f)\n ' ], 0 ),
177+ 'trace() row 2' )
178+ test (git .tr [2 ][1 :] == (TESTFN , 18 , 'eggs' , [' q = y / 0\n ' ], 0 ),
179+ 'trace() row 3' )
177180
178181test (len (mod .st ) >= 5 , 'stack() length' )
179182test (mod .st [0 ][1 :] ==
@@ -188,7 +191,6 @@ def sourcerange(top, bottom):
188191test (mod .st [3 ][1 :] ==
189192 (TESTFN , 39 , 'abuse' , [' self.argue(a, b, c)\n ' ], 0 ),
190193 'stack() row 4' )
191- # row 4 is in test_inspect.py
192194
193195args , varargs , varkw , locals = inspect .getargvalues (mod .fr )
194196test (args == ['x' , 'y' ], 'mod.fr args' )
0 commit comments