[Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.33,1.34
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 21 May 2001 14:08:14 -0700
- Previous message: [Python-checkins] CVS: python/dist/src setup.py,1.40,1.41
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test/output test___all__,1.1,NONE test___future__,1.1,NONE test_al,1.1,NONE test_array,1.1,NONE test_audioop,1.1,NONE test_binhex,1.1,NONE test_bisect,1.1,NONE test_bsddb,1.1,NONE test_bufio,1.1,NONE test_capi,1.1,NONE test_cd,1.1,NONE test_cl,1.1,NONE test_cmath,1.1,NONE test_complex,1.1,NONE test_contains,1.1,NONE test_crypt,1.2,NONE test_dbm,1.1,NONE test_dl,1.1,NONE test_dumbdbm,1.1,NONE test_errno,1.1,NONE test_fcntl,1.1,NONE test_file,1.1,NONE test_fnmatch,1.1,NONE test_fork1,1.1,NONE test_format,1.1,NONE test_funcattrs,1.1,NONE test_gc,1.2,NONE test_gdbm,1.1,NONE test_getopt,1.2,NONE test_gl,1.1,NONE test_grp,1.1,NONE test_gzip,1.1,NONE test_hash,1.1,NONE test_htmlparser,1.1,NONE test_imageop,1.1,NONE test_imgfile,1.1,NONE test_import,1.1,NONE test_inspect,1.1,NONE test_iter,1.2,NONE test_largefile,1.1,NONE test_locale,1.1,NONE test_mailbox,1.2,NONE test_mutants,1.1,NONE test_pprint,1.1,NONE test_rfc822,1.1,NONE test_select,1.2,NONE test_sre,1.12,NONE test_strftime,1.2,NONE test_struct,1.2,NONE test_sunaudiodev,1.1,NONE test_sundry,1.1,NONE test_symtable,1.1,NONE test_time,1.1,NONE test_timing,1.1,NONE test_traceback,1.1,NONE test_unpack,1.1,NONE test_urllib,1.1,NONE test_urllib2,1.1,NONE test_userdict,1.1,NONE test_userlist,1.1,NONE test_userstring,1.3,NONE test_wave,1.1,NONE test_weakref,1.3,NONE test_xmllib,1.1,NONE test_zipfile,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv18703
Modified Files:
regrtest.py
Log Message:
If the file containing expected output does not exist, assume that it
contains a single line of text giving the name of the output file. This
covers all tests that do not actually produce any output in the test code.
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** regrtest.py 2001/04/18 01:19:27 1.33
--- regrtest.py 2001/05/21 21:08:12 1.34
***************
*** 38,41 ****
--- 38,42 ----
import traceback
import random
+ import StringIO
import test_support
***************
*** 285,289 ****
def __init__(self, filename):
! self.fp = open(filename, 'r')
self.stuffthatmatched = []
--- 286,294 ----
def __init__(self, filename):
! if os.path.exists(filename):
! self.fp = open(filename, 'r')
! else:
! self.fp = StringIO.StringIO(
! os.path.basename(filename) + "\n")
self.stuffthatmatched = []
- Previous message: [Python-checkins] CVS: python/dist/src setup.py,1.40,1.41
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test/output test___all__,1.1,NONE test___future__,1.1,NONE test_al,1.1,NONE test_array,1.1,NONE test_audioop,1.1,NONE test_binhex,1.1,NONE test_bisect,1.1,NONE test_bsddb,1.1,NONE test_bufio,1.1,NONE test_capi,1.1,NONE test_cd,1.1,NONE test_cl,1.1,NONE test_cmath,1.1,NONE test_complex,1.1,NONE test_contains,1.1,NONE test_crypt,1.2,NONE test_dbm,1.1,NONE test_dl,1.1,NONE test_dumbdbm,1.1,NONE test_errno,1.1,NONE test_fcntl,1.1,NONE test_file,1.1,NONE test_fnmatch,1.1,NONE test_fork1,1.1,NONE test_format,1.1,NONE test_funcattrs,1.1,NONE test_gc,1.2,NONE test_gdbm,1.1,NONE test_getopt,1.2,NONE test_gl,1.1,NONE test_grp,1.1,NONE test_gzip,1.1,NONE test_hash,1.1,NONE test_htmlparser,1.1,NONE test_imageop,1.1,NONE test_imgfile,1.1,NONE test_import,1.1,NONE test_inspect,1.1,NONE test_iter,1.2,NONE test_largefile,1.1,NONE test_locale,1.1,NONE test_mailbox,1.2,NONE test_mutants,1.1,NONE test_pprint,1.1,NONE test_rfc822,1.1,NONE test_select,1.2,NONE test_sre,1.12,NONE test_strftime,1.2,NONE test_struct,1.2,NONE test_sunaudiodev,1.1,NONE test_sundry,1.1,NONE test_symtable,1.1,NONE test_time,1.1,NONE test_timing,1.1,NONE test_traceback,1.1,NONE test_unpack,1.1,NONE test_urllib,1.1,NONE test_urllib2,1.1,NONE test_userdict,1.1,NONE test_userlist,1.1,NONE test_userstring,1.3,NONE test_wave,1.1,NONE test_weakref,1.3,NONE test_xmllib,1.1,NONE test_zipfile,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]