[Python-checkins] python/dist/src/Lib/test regrtest.py,1.105,1.106 test_normalization.py,1.4,1.5

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 24 Nov 2002 11:19:11 -0800


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

Modified Files:
	regrtest.py test_normalization.py 
Log Message:
Reduced memory burden by iterating over the normalization test input
file directly (instead of sucking it all into a list of lines first).


Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.105
retrieving revision 1.106
diff -C2 -d -r1.105 -r1.106
*** regrtest.py	24 Nov 2002 18:53:11 -0000	1.105
--- regrtest.py	24 Nov 2002 19:19:09 -0000	1.106
***************
*** 507,511 ****
  #         Whether a skip is expected here depends on whether a large test
  #         input file has been downloaded.  test_normalization.skip_expected
! #         controls that
  
  _expectations = {
--- 507,511 ----
  #         Whether a skip is expected here depends on whether a large test
  #         input file has been downloaded.  test_normalization.skip_expected
! #         controls that.
  
  _expectations = {

Index: test_normalization.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_normalization.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_normalization.py	24 Nov 2002 18:53:11 -0000	1.4
--- test_normalization.py	24 Nov 2002 19:19:09 -0000	1.5
***************
*** 34,41 ****
                      "http://www.unicode.org/Public/UNIDATA/" + TESTDATAFILE)
  
-     data = open(TESTDATAFILE).readlines()
- 
      part1_data = {}
!     for line in data:
          if '#' in line:
              line = line.split('#')[0]
--- 34,39 ----
                      "http://www.unicode.org/Public/UNIDATA/" + TESTDATAFILE)
  
      part1_data = {}
!     for line in open(TESTDATAFILE):
          if '#' in line:
              line = line.split('#')[0]