summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-03 13:04:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-03 13:04:03 (GMT)
commitfffd7224dffd0a0dea0df3d47b821e7880aca695 (patch)
tree65ae3177297b327d7b0d2cfb01f3d28454798145
parent5756ee0fe6f30cee4439d36db0a98317a3a899b2 (diff)
downloadcpython-fffd7224dffd0a0dea0df3d47b821e7880aca695.zip
cpython-fffd7224dffd0a0dea0df3d47b821e7880aca695.tar.gz
cpython-fffd7224dffd0a0dea0df3d47b821e7880aca695.tar.bz2
The test opened the binary test data files in text mode! Fixed.
-rw-r--r--Lib/test/test_uu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_uu.py b/Lib/test/test_uu.py
index 503976a..8c324d1 100644
--- a/Lib/test/test_uu.py
+++ b/Lib/test/test_uu.py
@@ -60,11 +60,11 @@ if verbose:
tmpIn = TESTFN + "i"
tmpOut = TESTFN + "o"
try:
- fin = open(tmpIn, 'w')
+ fin = open(tmpIn, 'wb')
fin.write(teststr)
fin.close()
- fin = open(tmpIn, 'r')
+ fin = open(tmpIn, 'rb')
fout = open(tmpOut, 'w')
uu.encode(fin, fout, tmpIn, mode=0644)
fin.close()
@@ -79,7 +79,7 @@ try:
if verbose:
print '6. decode file-> file'
uu.decode(tmpOut)
- fin = open(tmpIn, 'r')
+ fin = open(tmpIn, 'rb')
s = fin.read()
fin.close()
verify(s == teststr)