[Python-checkins] r51207 - python/branches/release24-maint/Lib/test/test_cgi.py
georg.brandl
python-checkins at python.org
Fri Aug 11 09:32:53 CEST 2006
Author: georg.brandl
Date: Fri Aug 11 09:32:53 2006
New Revision: 51207
Modified:
python/branches/release24-maint/Lib/test/test_cgi.py
Log:
Backport whitespace-normalization-proofing test_cgi fix.
Modified: python/branches/release24-maint/Lib/test/test_cgi.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test_cgi.py (original)
+++ python/branches/release24-maint/Lib/test/test_cgi.py Fri Aug 11 09:32:53 2006
@@ -241,7 +241,7 @@
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 @@
-----------------------------721837373350705526688164684
Content-Disposition: form-data; name="submit"
- Add
+ Add\x20
-----------------------------721837373350705526688164684--
"""
fs = cgi.FieldStorage(fp=StringIO(postdata), environ=env)
More information about the Python-checkins
mailing list