[Python-checkins] CVS: python/dist/src/Lib/test test_largefile.py,1.4,1.5
Barry Warsaw
bwarsaw@users.sourceforge.net
2001年8月20日 15:37:36 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv10809
Modified Files:
test_largefile.py
Log Message:
Use test_support.requires() to decide whether additional largefile
tests should be run.
Index: test_largefile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_largefile.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_largefile.py 2001年04月10日 14:50:51 1.4
--- test_largefile.py 2001年08月20日 22:37:34 1.5
***************
*** 31,41 ****
! # on Windows this test comsumes large resources:
! # it takes a long time to build the >2GB file and takes >2GB of disk space
! # therefore test_support.use_large_resources must be defined to run this test
! if sys.platform[:3] == 'win' and not test_support.use_large_resources:
! raise test_support.TestSkipped, \
! "test requires %s bytes and a long time to run" % str(size)
!
--- 31,42 ----
! # On Windows this test comsumes large resources; It takes a long time to build
! # the >2GB file and takes >2GB of disk space therefore the resource must be
! # enabled to run this test. If not, nothing after this line stanza will be
! # executed.
! if sys.platform[:3] == 'win':
! test_support.requires(
! 'largefile',
! 'test requires %s bytes and a long time to run' % str(size))