From 1f2ca56e296bea2e1374458a7ec40692e7145174 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 27 Aug 2007 20:44:15 +0000 Subject: [PATCH] Changes in anticipation of stricter str vs. bytes enforcement. --- Lib/test/test_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index fe2d3263f5a..5c30e50a24d 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: