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

Tim Peters tim_one@users.sourceforge.net
Sat, 03 Feb 2001 19:09:54 -0800


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

Modified Files:
	test_capi.py 
Log Message:
Renamed _testXXX to _testcapiXXX.  Jack is my hero -- good call!


Index: test_capi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_capi.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_capi.py	2001/02/02 05:57:14	1.1
--- test_capi.py	2001/02/04 03:09:52	1.2
***************
*** 1,16 ****
! # Run the _test module tests (tests for the Python/C API):  by defn, these
! # are all functions _test exports whose name begins with 'test_'.
  
  import sys
  import test_support
! import _test
  
! for name in dir(_test):
      if name.startswith('test_'):
!         test = getattr(_test, name)
          if test_support.verbose:
              print "internal", name
          try:
              test()
!         except _test.error:
              raise test_support.TestFailed, sys.exc_info()[1]
--- 1,16 ----
! # Run the _testcapi module tests (tests for the Python/C API):  by defn,
! # these are all functions _test exports whose name begins with 'test_'.
  
  import sys
  import test_support
! import _testcapi
  
! for name in dir(_testcapi):
      if name.startswith('test_'):
!         test = getattr(_testcapi, name)
          if test_support.verbose:
              print "internal", name
          try:
              test()
!         except _testcapi.error:
              raise test_support.TestFailed, sys.exc_info()[1]