summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
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: