[Python-checkins] CVS: python/dist/src/Lib/test test_uu.py,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
Fri, 03 Aug 2001 06:04:05 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv32617/python/Lib/test
Modified Files:
test_uu.py
Log Message:
The test opened the binary test data files in text mode! Fixed.
Index: test_uu.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_uu.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_uu.py 2001/07/11 21:43:42 1.1
--- test_uu.py 2001/08/03 13:04:03 1.2
***************
*** 61,69 ****
tmpOut = TESTFN + "o"
try:
! fin = open(tmpIn, 'w')
fin.write(teststr)
fin.close()
! fin = open(tmpIn, 'r')
fout = open(tmpOut, 'w')
uu.encode(fin, fout, tmpIn, mode=0644)
--- 61,69 ----
tmpOut = TESTFN + "o"
try:
! fin = open(tmpIn, 'wb')
fin.write(teststr)
fin.close()
! fin = open(tmpIn, 'rb')
fout = open(tmpOut, 'w')
uu.encode(fin, fout, tmpIn, mode=0644)
***************
*** 80,84 ****
print '6. decode file-> file'
uu.decode(tmpOut)
! fin = open(tmpIn, 'r')
s = fin.read()
fin.close()
--- 80,84 ----
print '6. decode file-> file'
uu.decode(tmpOut)
! fin = open(tmpIn, 'rb')
s = fin.read()
fin.close()