summaryrefslogtreecommitdiffstats
path: root/Lib/email/test
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2007-08-31 03:04:26 (GMT)
committerBarry Warsaw <barry@python.org>2007-08-31 03:04:26 (GMT)
commit8b2af27dae7c80218c9912052ac1b4c6144ce746 (patch)
tree5dca10b0aa0f7ee88bd3e8eb2f303d994674058d /Lib/email/test
parent00b34228bb98c378286c0b72a4a4098d5cdd384b (diff)
downloadcpython-8b2af27dae7c80218c9912052ac1b4c6144ce746.zip
cpython-8b2af27dae7c80218c9912052ac1b4c6144ce746.tar.gz
cpython-8b2af27dae7c80218c9912052ac1b4c6144ce746.tar.bz2
More email package fixes.
MIMEApplication() requires a bytes object for its _data, so fix the tests. We no longer need utils._identity() or utils._bdecode(). The former isn't used anywhere AFAICT (where's "make test's" lint? <wink>) and the latter is a kludge that is eliminated by base64.b64encode(). Current status: 5F/5E
Diffstat (limited to 'Lib/email/test')
-rw-r--r--Lib/email/test/test_email.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index ef11e17..15c8325 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -1012,7 +1012,7 @@ class TestMIMEImage(unittest.TestCase):
class TestMIMEApplication(unittest.TestCase):
def test_headers(self):
eq = self.assertEqual
- msg = MIMEApplication('\xfa\xfb\xfc\xfd\xfe\xff')
+ msg = MIMEApplication(b'\xfa\xfb\xfc\xfd\xfe\xff')
eq(msg.get_content_type(), 'application/octet-stream')
eq(msg['content-transfer-encoding'], 'base64')