mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
5d8da20dd1
commit
77250f4df7
10 changed files with 1245 additions and 193 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue