From: Guido van Rossum Date: Mon, 27 Aug 2007 20:44:15 +0000 (+0000) Subject: Changes in anticipation of stricter str vs. bytes enforcement. X-Git-Tag: v3.0a1~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f2ca56e296bea2e1374458a7ec40692e7145174;p=thirdparty%2FPython%2Fcpython.git Changes in anticipation of stricter str vs. bytes enforcement. --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index fe2d3263f5a3..5c30e50a24df 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: