This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BytesGenerator fails if the Message body is None
Type: behavior Stage: resolved
Components: Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: r.david.murray Nosy List: r.david.murray, vstinner
Priority: high Keywords: patch

Created on 2011-01-26 20:57 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
BytesGenerator_handle_text.patch vstinner, 2011-01-26 21:04
bytes_generator_none_body.patch r.david.murray, 2011-01-26 21:07
Messages (6)
msg127139 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-26 20:57
This was discovered by Haypo during work on #9124.  I'll attach a patch with test shortly.
msg127141 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-01-26 21:04
(Patch without patch from #9124)
msg127142 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-26 21:06
Here's the patch and test.
msg127143 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-26 21:07
OK, so let's try again, since roundup saw fit to clear the upload field on me...
msg127146 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-01-26 21:16
The new test fails without the fix, and it pass with the fix. The fix itself looks correct because I wrote a similar patch :-) Go on.
msg127147 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-26 21:23
Committed in r88203.
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55228
2011-01-26 21:23:34r.david.murraysetstatus: open -> closed

messages: + msg127147
resolution: fixed
stage: commit review -> resolved
2011-01-26 21:16:51vstinnersetmessages: + msg127146
2011-01-26 21:07:16r.david.murraysetfiles: + bytes_generator_none_body.patch

messages: + msg127143
2011-01-26 21:06:28r.david.murraysetmessages: + msg127142
2011-01-26 21:04:01vstinnersetfiles: + BytesGenerator_handle_text.patch

nosy: + vstinner
messages: + msg127141

keywords: + patch
2011-01-26 20:57:15r.david.murraycreate