diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-06-05 14:11:59 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-06-05 14:11:59 (GMT) |
commit | ba8b6bc86fcb00b37a53f8edd8f38c4b0e77f3a5 (patch) | |
tree | 7e86e9f0ed052b5173e1c8d1e204fb4da599683d /Lib/test/test_inspect.py | |
parent | 39aef79821d9ad8d428b14b59190bd0ca0c550d9 (diff) | |
download | cpython-ba8b6bc86fcb00b37a53f8edd8f38c4b0e77f3a5.zip cpython-ba8b6bc86fcb00b37a53f8edd8f38c4b0e77f3a5.tar.gz cpython-ba8b6bc86fcb00b37a53f8edd8f38c4b0e77f3a5.tar.bz2 |
[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.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 3ff08b7..bdbec41 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -158,8 +158,8 @@ istest(inspect.istraceback, 'git.ex[2]') 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), +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), 'trace() row 2') |