[Python-checkins] r57262 - python/branches/alex-py3k/Lib/test/test_mimetools.py
alexandre.vassalotti
python-checkins at python.org
Tue Aug 21 19:59:33 CEST 2007
Author: alexandre.vassalotti
Date: Tue Aug 21 19:59:33 2007
New Revision: 57262
Modified:
python/branches/alex-py3k/Lib/test/test_mimetools.py
Log:
Fix mimetools test by converting the Message object to str before
passing it to StringIO.
Modified: python/branches/alex-py3k/Lib/test/test_mimetools.py
==============================================================================
--- python/branches/alex-py3k/Lib/test/test_mimetools.py (original)
+++ python/branches/alex-py3k/Lib/test/test_mimetools.py Tue Aug 21 19:59:33 2007
@@ -58,7 +58,7 @@
s.add(nb)
def test_message(self):
- msg = mimetools.Message(io.StringIO(msgtext1))
+ msg = mimetools.Message(io.StringIO(str(msgtext1)))
self.assertEqual(msg.gettype(), "text/plain")
self.assertEqual(msg.getmaintype(), "text")
self.assertEqual(msg.getsubtype(), "plain")
More information about the Python-checkins
mailing list