mirror of
https://github.com/python/cpython.git
synced 2025-10-12 01:43:12 +00:00
str/bytes strictness.
This commit is contained in:
parent
7a6dd29067
commit
b644fb43d6
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue