Commit 1f2ca56e authored by Guido van Rossum's avatar Guido van Rossum

Changes in anticipation of stricter str vs. bytes enforcement.

parent 09549f44
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment