From: Georg Brandl Date: Fri, 11 Aug 2006 07:32:53 +0000 (+0000) Subject: Backport whitespace-normalization-proofing test_cgi fix. X-Git-Tag: v2.4.4c1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2e503f71eb4494268e98df8291942385b68041;p=thirdparty%2FPython%2Fcpython.git Backport whitespace-normalization-proofing test_cgi fix. --- diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index c066c4ce3a15..557f4dc0ce49 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)