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

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Fri, 08 Nov 2002 20:44:32 -0800


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

Modified Files:
	test_bz2.py 
Log Message:
Open at least one binary file in binary mode.  This allows a few of the
bz2 tests to pass on Windows; most are still failing.


Index: test_bz2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bz2.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_bz2.py	5 Nov 2002 16:50:05 -0000	1.1
--- test_bz2.py	9 Nov 2002 04:44:30 -0000	1.2
***************
*** 35,39 ****
  	
  	def createTempFile(self, crlf=0):
! 		f = open(self.filename, "w")
  		if crlf:
  			data = self.DATA_CRLF
--- 35,39 ----
  	
  	def createTempFile(self, crlf=0):
! 		f = open(self.filename, "wb")
  		if crlf:
  			data = self.DATA_CRLF