diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-08-10 23:22:13 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-08-10 23:22:13 (GMT) |
commit | b7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316 (patch) | |
tree | 1cfe27b7eb1526f1050f37f852f852b58e67a24f | |
parent | 0d9ca9fa47d5edce2408de21b092d355ace6eeb2 (diff) | |
download | cpython-b7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316.zip cpython-b7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316.tar.gz cpython-b7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316.tar.bz2 |
Whitespace normalization broke test_cgi, because a line
of quoted test data relied on preserving a single trailing
blank. Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.
-rw-r--r-- | Lib/test/test_cgi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index 7789fc8..557f4dc 100644 --- a/Lib/test/test_cgi.py +++ b/Lib/test/test_cgi.py @@ -241,7 +241,7 @@ def main(): print "Test basic FieldStorage multipart parsing" env = {'REQUEST_METHOD':'POST', 'CONTENT_TYPE':'multipart/form-data; boundary=---------------------------721837373350705526688164684', 'CONTENT_LENGTH':'558'} - postdata = r"""-----------------------------721837373350705526688164684 + postdata = """-----------------------------721837373350705526688164684 Content-Disposition: form-data; name="id" 1234 @@ -258,7 +258,7 @@ Testing 123. -----------------------------721837373350705526688164684 Content-Disposition: form-data; name="submit" - Add + Add\x20 -----------------------------721837373350705526688164684-- """ fs = cgi.FieldStorage(fp=StringIO(postdata), environ=env) |