]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Changes in anticipation of stricter str vs. bytes enforcement.
authorGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 20:44:15 +0000 (20:44 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Aug 2007 20:44:15 +0000 (20:44 +0000)
Lib/test/test_io.py

index fe2d3263f5a3bfd7cf6bc7d43b990c930677ea3e..5c30e50a24df7c5cf5f6ce82ac14bbb865c53828 100644 (file)
@@ -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: