[Python-checkins]
python/dist/src/Lib/test test_inspect.py, 1.12.8.1, 1.12.8.2
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Jun 5 10:14:51 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32563/Lib/test
Modified Files:
Tag: release23-maint
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.12.8.1
retrieving revision 1.12.8.2
diff -C2 -d -r1.12.8.1 -r1.12.8.2
*** test_inspect.py 31 Oct 2003 15:34:16 -0000 1.12.8.1
--- test_inspect.py 5 Jun 2004 14:14:48 -0000 1.12.8.2
***************
*** 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