From b7ad1eb2c6ad9a331ddc3a32d0d2780981f0d316 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 10 Aug 2006 23:22:13 +0000 Subject: [PATCH] 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. --- Lib/test/test_cgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index 7789fc83bc..557f4dc0ce 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) -- 2.50.1