[Python-checkins] CVS: python/nondist/sandbox/help test_inspect.py,1.1,1.2
Ka-Ping Yee
ping@users.sourceforge.net
Mon, 15 Jan 2001 14:38:45 -0800
Update of /cvsroot/python/python/nondist/sandbox/help
In directory usw-pr-cvs1:/tmp/cvs-serv2252
Modified Files:
test_inspect.py
Log Message:
Oops -- stack() test fails when test_inspect is invoked from another module.
This change fixes this.
Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/help/test_inspect.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_inspect.py 2001/01/14 11:39:35 1.1
--- test_inspect.py 2001/01/15 22:38:43 1.2
***************
*** 160,164 ****
istest(inspect.isframe, 'mod.fr')
! test(len(git.tr) == 2, 'trace()')
test(git.tr[0][1:] == ('@test', 9, 'spam', [' eggs(b + d, c + f)\n'], 0),
'trace() row 1')
--- 160,164 ----
istest(inspect.isframe, 'mod.fr')
! test(len(git.tr) == 2, 'trace() length')
test(git.tr[0][1:] == ('@test', 9, 'spam', [' eggs(b + d, c + f)\n'], 0),
'trace() row 1')
***************
*** 166,170 ****
'trace() row 2')
! test(len(mod.st) == 5, 'stack()')
test(mod.st[0][1:] ==
('@test', 16, 'eggs', [' st = inspect.stack()\n'], 0),
--- 166,170 ----
'trace() row 2')
! test(len(mod.st) >= 5, 'stack() length')
test(mod.st[0][1:] ==
('@test', 16, 'eggs', [' st = inspect.stack()\n'], 0),