Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f2ca56

Browse files
committed
Changes in anticipation of stricter str vs. bytes enforcement.
1 parent 09549f4 commit 1f2ca56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_with_open(self):
213213
for bufsize in (0, 1, 100):
214214
f = None
215215
with open(test_support.TESTFN, "wb", bufsize) as f:
216-
f.write("xxx")
216+
f.write(b"xxx")
217217
self.assertEqual(f.closed, True)
218218
f = None
219219
try:

0 commit comments

Comments
 (0)