diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-06 19:48:38 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-06 19:48:38 (GMT) |
commit | 77250f4df7a73a5c87d12d781a562747a855cd95 (patch) | |
tree | 61f83259cd270f6011c75cbe95d2a25d12c29f87 /Lib/test/test_mimetools.py | |
parent | 5d8da20dd1034081906dbdffea9c77bf39353dec (diff) | |
download | cpython-77250f4df7a73a5c87d12d781a562747a855cd95.zip cpython-77250f4df7a73a5c87d12d781a562747a855cd95.tar.gz cpython-77250f4df7a73a5c87d12d781a562747a855cd95.tar.bz2 |
Added fast alternate io.BytesIO implementation and its test suite.
Removed old test suite for StringIO.
Modified truncate() to imply a seek to given argument value.
Diffstat (limited to 'Lib/test/test_mimetools.py')
-rw-r--r-- | Lib/test/test_mimetools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_mimetools.py b/Lib/test/test_mimetools.py index cf0e191..ef333f5 100644 --- a/Lib/test/test_mimetools.py +++ b/Lib/test/test_mimetools.py @@ -58,7 +58,7 @@ class MimeToolsTest(unittest.TestCase): 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") |