summaryrefslogtreecommitdiffstats
path: root/Lib/email/test/test_email_torture.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-10-07 17:27:55 (GMT)
committerBarry Warsaw <barry@python.org>2002-10-07 17:27:55 (GMT)
commit08c82b8086d2edae9937aabb0945e4f08eec447a (patch)
treea5237679c827f0dc9f023f093ab791b737a2191f /Lib/email/test/test_email_torture.py
parent487fe6ac398b38b604d56285f2afb71e3ddbeb91 (diff)
downloadcpython-08c82b8086d2edae9937aabb0945e4f08eec447a.zip
cpython-08c82b8086d2edae9937aabb0945e4f08eec447a.tar.gz
cpython-08c82b8086d2edae9937aabb0945e4f08eec447a.tar.bz2
openfile(): Go back to opening the files in text mode. This undoes
the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there.
Diffstat (limited to 'Lib/email/test/test_email_torture.py')
-rw-r--r--Lib/email/test/test_email_torture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/test/test_email_torture.py b/Lib/email/test/test_email_torture.py
index 76d66a9..8d58b46 100644
--- a/Lib/email/test/test_email_torture.py
+++ b/Lib/email/test/test_email_torture.py
@@ -22,7 +22,7 @@ from email.Iterators import _structure
def openfile(filename):
from os.path import join, dirname, abspath
path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
- return open(path, 'rb')
+ return open(path, 'r')
# Prevent this test from running in the Python distro
try: