mirror of https://github.com/python/cpython
Changes in anticipation of stricter str vs. bytes enforcement.
This commit is contained in:
parent
09549f4407
commit
1f2ca56e29
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue