summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 20:44:15 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 20:44:15 (GMT)
commit1f2ca56e296bea2e1374458a7ec40692e7145174 (patch)
treeb7330118c24d0b0187241abf8b91ef854626f238 /Lib/test/test_io.py
parent09549f44076e84083cbb15dbd6da9d1a3fd6d7f1 (diff)
downloadcpython-1f2ca56e296bea2e1374458a7ec40692e7145174.zip
cpython-1f2ca56e296bea2e1374458a7ec40692e7145174.tar.gz
cpython-1f2ca56e296bea2e1374458a7ec40692e7145174.tar.bz2
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index fe2d326..5c30e50 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -213,7 +213,7 @@ class IOTest(unittest.TestCase):
for bufsize in (0, 1, 100):
f = None
with open(test_support.TESTFN, "wb", bufsize) as f:
- f.write("xxx")
+ f.write(b"xxx")
self.assertEqual(f.closed, True)
f = None
try: