[Python-checkins] CVS: python/dist/src/Lib/test test_inspect.py,1.3,1.4
Ka-Ping Yee
ping@users.sourceforge.net
2001年3月22日 21:14:12 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv21475/Lib/test
Modified Files:
test_inspect.py
Log Message:
Don't have trace() skip the top frame; return them all.
Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_inspect.py 2001年03月04日 00:30:25 1.3
--- test_inspect.py 2001年03月23日 05:14:10 1.4
***************
*** 170,178 ****
istest(inspect.isframe, 'mod.fr')
! test(len(git.tr) == 2, 'trace() length')
! test(git.tr[0][1:] == (TESTFN, 9, 'spam', [' eggs(b + d, c + f)\n'], 0),
! 'trace() row 1')
! test(git.tr[1][1:] == (TESTFN, 18, 'eggs', [' q = y / 0\n'], 0),
'trace() row 2')
test(len(mod.st) >= 5, 'stack() length')
--- 170,181 ----
istest(inspect.isframe, 'mod.fr')
! test(len(git.tr) == 3, 'trace() length')
! test(git.tr[0][1:] == (TESTFN, 46, 'argue',
! [' self.tr = inspect.trace()\n'], 0),
'trace() row 2')
+ test(git.tr[1][1:] == (TESTFN, 9, 'spam', [' eggs(b + d, c + f)\n'], 0),
+ 'trace() row 2')
+ test(git.tr[2][1:] == (TESTFN, 18, 'eggs', [' q = y / 0\n'], 0),
+ 'trace() row 3')
test(len(mod.st) >= 5, 'stack() length')
***************
*** 189,193 ****
(TESTFN, 39, 'abuse', [' self.argue(a, b, c)\n'], 0),
'stack() row 4')
- # row 4 is in test_inspect.py
args, varargs, varkw, locals = inspect.getargvalues(mod.fr)
--- 192,195 ----