[Python-checkins] CVS: python/dist/src/Lib/test test_inspect.py,1.1,1.2

Ka-Ping Yee ping@users.sourceforge.net
Thu, 01 Mar 2001 21:48:13 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv7205/test

Modified Files:
	test_inspect.py 
Log Message:
Replace literal '@test' with TESTFN.


Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_inspect.py	2001/02/27 14:43:21	1.1
--- test_inspect.py	2001/03/02 05:48:10	1.2
***************
*** 169,189 ****
  
  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')
! test(git.tr[1][1:] == ('@test', 18, 'eggs', ['    q = y / 0\n'], 0),
       'trace() row 2')
  
  test(len(mod.st) >= 5, 'stack() length')
  test(mod.st[0][1:] ==
!      ('@test', 16, 'eggs', ['    st = inspect.stack()\n'], 0),
       'stack() row 1')
  test(mod.st[1][1:] ==
!      ('@test', 9, 'spam', ['    eggs(b + d, c + f)\n'], 0),
       'stack() row 2')
  test(mod.st[2][1:] ==
!      ('@test', 43, 'argue', ['            spam(a, b, c)\n'], 0),
       'stack() row 3')
  test(mod.st[3][1:] ==
!      ('@test', 39, 'abuse', ['        self.argue(a, b, c)\n'], 0),
       'stack() row 4')
  # row 4 is in test_inspect.py
--- 169,189 ----
  
  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')
  test(mod.st[0][1:] ==
!      (TESTFN, 16, 'eggs', ['    st = inspect.stack()\n'], 0),
       'stack() row 1')
  test(mod.st[1][1:] ==
!      (TESTFN, 9, 'spam', ['    eggs(b + d, c + f)\n'], 0),
       'stack() row 2')
  test(mod.st[2][1:] ==
!      (TESTFN, 43, 'argue', ['            spam(a, b, c)\n'], 0),
       'stack() row 3')
  test(mod.st[3][1:] ==
!      (TESTFN, 39, 'abuse', ['        self.argue(a, b, c)\n'], 0),
       'stack() row 4')
  # row 4 is in test_inspect.py