[Python-checkins] python/dist/src/Lib/test test_inspect.py, 1.13,
1.14
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Jun 5 10:12:01 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32149/test
Modified Files:
test_inspect.py
Log Message:
[Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_inspect.py 31 Oct 2003 15:35:53 -0000 1.13
--- test_inspect.py 5 Jun 2004 14:11:59 -0000 1.14
***************
*** 159,164 ****
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),
--- 159,164 ----
test(len(git.tr) == 3, 'trace() length')
! test(git.tr[0][1:] == (TESTFN, 43, 'argue',
! [' spam(a, b, c)\n'], 0),
'trace() row 2')
test(git.tr[1][1:] == (TESTFN, 9, 'spam', [' eggs(b + d, c + f)\n'], 0),
More information about the Python-checkins
mailing list