mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Changes in anticipation of stricter str vs. bytes enforcement.
This commit is contained in:
parent
739e2ad64b
commit
09549f4407
9 changed files with 97 additions and 115 deletions
|
@ -232,7 +232,7 @@ class CgiTests(unittest.TestCase):
|
|||
return a
|
||||
|
||||
f = TestReadlineFile(tempfile.TemporaryFile())
|
||||
f.write('x' * 256 * 1024)
|
||||
f.write(b'x' * 256 * 1024)
|
||||
f.seek(0)
|
||||
env = {'REQUEST_METHOD':'PUT'}
|
||||
fs = cgi.FieldStorage(fp=f, environ=env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue