Commit b95fa7e0 authored by Guido van Rossum's avatar Guido van Rossum

str/bytes strictness.

parent 02711bc9
...@@ -50,9 +50,9 @@ class ResourceTest(unittest.TestCase): ...@@ -50,9 +50,9 @@ class ResourceTest(unittest.TestCase):
limit_set = False limit_set = False
f = open(test_support.TESTFN, "wb") f = open(test_support.TESTFN, "wb")
try: try:
f.write("X" * 1024) f.write(b"X" * 1024)
try: try:
f.write("Y") f.write(b"Y")
f.flush() f.flush()
except IOError: except IOError:
if not limit_set: if not limit_set:
......
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