summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cgi.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-08-10 23:22:13 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-08-10 23:22:13 (GMT)
commitb7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316 (patch)
tree1cfe27b7eb1526f1050f37f852f852b58e67a24f /Lib/test/test_cgi.py
parent0d9ca9fa47d5edce2408de21b092d355ace6eeb2 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/test/test_cgi.py')
-rw-r--r--Lib/test/test_cgi.py4
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)