Changes in anticipation of stricter str vs. bytes enforcement.

This commit is contained in:
Guido van Rossum 2007-08-27 20:44:15 +00:00
parent 09549f4407
commit 1f2ca56e29
1 changed files with 1 additions and 1 deletions

View 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: