str/bytes strictness.

This commit is contained in:
Guido van Rossum 2007-08-27 23:36:53 +00:00
parent 7a6dd29067
commit b644fb43d6

View file

@ -50,9 +50,9 @@ class ResourceTest(unittest.TestCase):
limit_set = False
f = open(test_support.TESTFN, "wb")
try:
f.write("X" * 1024)
f.write(b"X" * 1024)
try:
f.write("Y")
f.write(b"Y")
f.flush()
except IOError:
if not limit_set: