homepage

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.

Author martin.panter
Recipients Rotkraut, demian.brecht, harobed, martin.panter, matrixise, orsenthil, petri.lehtinen, piotr.dobrogost, pitrou, python-dev, vstinner, whitemice
Date 2016年08月24日.07:47:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472024854.01.0.850993696908.issue12319@psf.upfronthosting.co.za>
In-reply-to
Content
Rolf, just a note that I had to remove some trailing spaces on various continued lines in the Python code before it would let me push this.
Other tweaks I made:
* Eliminate _read_iterable() and lambda
* Rename line → chunk
The Windows buildbots fail the test sending a pipe with urlopen():
http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.x/builds/1166/steps/test/logs/stdio
======================================================================
FAIL: test_http_body_pipe (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "D:\buildarea3円.x.ware-win81-release\build\lib\test\test_urllib2.py", line 970, in test_http_body_pipe
 self.assertEqual(newreq.get_header('Content-length'), None)
AssertionError: '0' != None
I cannot figure out why exactly. My experiments with Wine suggest that tell() on a BufferedReader wrapping a pipe raises OSError, so I would expect _get_content_length() to return None, yet the test failure shows that Content-Length is set to zero.
Is anyone able to investigate this on Windows? Will tell() and seek() reliably fail on a pipe or other unseekable file?
History
Date User Action Args
2016年08月24日 07:47:34martin.pantersetrecipients: + martin.panter, orsenthil, pitrou, vstinner, harobed, python-dev, petri.lehtinen, piotr.dobrogost, demian.brecht, matrixise, whitemice, Rotkraut
2016年08月24日 07:47:34martin.pantersetmessageid: <1472024854.01.0.850993696908.issue12319@psf.upfronthosting.co.za>
2016年08月24日 07:47:33martin.panterlinkissue12319 messages
2016年08月24日 07:47:33martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /