[Python-checkins] CVS: python/dist/src/Lib/test test_pty.py,1.11,1.12 test_zipfile.py,1.4,1.5

Tim Peters tim_one@users.sourceforge.net
Wed, 28 Mar 2001 20:36:11 -0800


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

Modified Files:
	test_pty.py test_zipfile.py 
Log Message:
Whitespace normalization.


Index: test_pty.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pty.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** test_pty.py	2001/03/22 14:50:24	1.11
--- test_pty.py	2001/03/29 04:36:09	1.12
***************
*** 61,65 ****
  
      # After pty.fork(), the child should already be a session leader.
!     # (on those systems that have that concept.) 
      debug("In child, calling os.setsid()")
      try:
--- 61,65 ----
  
      # After pty.fork(), the child should already be a session leader.
!     # (on those systems that have that concept.)
      debug("In child, calling os.setsid()")
      try:

Index: test_zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zipfile.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_zipfile.py	2001/03/26 15:49:24	1.4
--- test_zipfile.py	2001/03/29 04:36:09	1.5
***************
*** 11,20 ****
      zip.write(srcname, srcname)
      zip.close()
!             
      zip = zipfile.ZipFile(f, "r", compression)   # Read the ZIP archive
      readData2 = zip.read(srcname)
      readData1 = zip.read("another.name")
      zip.close()
!     
      if readData1 != srccontents or readData2 != srccontents:
          raise TestFailed, "Written data doesn't equal read data."
--- 11,20 ----
      zip.write(srcname, srcname)
      zip.close()
! 
      zip = zipfile.ZipFile(f, "r", compression)   # Read the ZIP archive
      readData2 = zip.read(srcname)
      readData1 = zip.read("another.name")
      zip.close()
! 
      if readData1 != srccontents or readData2 != srccontents:
          raise TestFailed, "Written data doesn't equal read data."
***************
*** 26,34 ****
          fp.write("Test of zipfile line %d.\n" % i)
      fp.close()
!     
      fp = open(srcname, "rb")
      writtenData = fp.read()
      fp.close()
!     
      for file in (zipname, tempfile.TemporaryFile(), StringIO.StringIO()):
          zipTest(file, zipfile.ZIP_STORED, writtenData)
--- 26,34 ----
          fp.write("Test of zipfile line %d.\n" % i)
      fp.close()
! 
      fp = open(srcname, "rb")
      writtenData = fp.read()
      fp.close()
! 
      for file in (zipname, tempfile.TemporaryFile(), StringIO.StringIO()):
          zipTest(file, zipfile.ZIP_STORED, writtenData)