summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_quopri.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_quopri.py')
-rw-r--r--Lib/test/test_quopri.py10
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)