-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… #10638
Conversation
… no content-length header
Lib/test/test_cgi.py
Outdated
} | ||
fields = cgi.FieldStorage(fp, environ=env) | ||
|
||
assert len(fields["my-arg"].file.read()) == 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unittest.TestCase
methods (like assertEqual()
) should be used instead of raw assert
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done in commit d67919b
@benjaminp: Please replace |
Thanks @PierreQuentel for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
pythonGH-10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual (cherry picked from commit 2d7caca) Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
GH-15919 is a backport of this pull request to the 3.8 branch. |
pythonGH-10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual (cherry picked from commit 2d7caca) Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
GH-15920 is a backport of this pull request to the 3.7 branch. |
GH-10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual (cherry picked from commit 2d7caca) Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
GH-10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual (cherry picked from commit 2d7caca) Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
python#10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual
python#10638) * bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header * Add Misc/NEWS.d/next file. * Add rst formatting for NEWS.d/next file * Reaplce assert by self.assertEqual
… no content-length header
https://bugs.python.org/issue20504