diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-07-28 17:58:14 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-07-28 17:58:14 (GMT) |
commit | 48f4cf9b946b26faf3a7239fdf4bfb0f2498a966 (patch) | |
tree | 809fd06a53eec4bea2778438ca3d1a866b113c20 /Lib/test/test_quopri.py | |
parent | 1bba9db0c3602f5f4bb3d9417b89cfefb1678b1a (diff) | |
download | cpython-48f4cf9b946b26faf3a7239fdf4bfb0f2498a966.zip cpython-48f4cf9b946b26faf3a7239fdf4bfb0f2498a966.tar.gz cpython-48f4cf9b946b26faf3a7239fdf4bfb0f2498a966.tar.bz2 |
Use BytesIO instead of cStringIO.StringIO.
Diffstat (limited to 'Lib/test/test_quopri.py')
-rw-r--r-- | Lib/test/test_quopri.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_quopri.py b/Lib/test/test_quopri.py index 960759a..b9ad65b 100644 --- a/Lib/test/test_quopri.py +++ b/Lib/test/test_quopri.py @@ -1,7 +1,7 @@ from test import test_support import unittest -import sys, os, cStringIO, subprocess +import sys, os, io, subprocess import quopri @@ -145,16 +145,16 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''') @withpythonimplementation def test_encode(self): for p, e in self.STRINGS: - infp = cStringIO.StringIO(p) - outfp = cStringIO.StringIO() + infp = io.BytesIO(p) + outfp = io.BytesIO() quopri.encode(infp, outfp, quotetabs=False) self.assertEqual(outfp.getvalue(), e) @withpythonimplementation def test_decode(self): for p, e in self.STRINGS: - infp = cStringIO.StringIO(e) - outfp = cStringIO.StringIO() + infp = io.BytesIO(e) + outfp = io.BytesIO() quopri.decode(infp, outfp) self.assertEqual(outfp.getvalue(), p) |