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 <>
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():
FAIL: test_http_body_pipe (test.test_urllib2.HandlerTests)
Traceback (most recent call last):
  File "D:\buildarea\3.x.ware-win81-release\build\lib\test\", 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?
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: <>
2016-08-24 07:47:33martin.panterlinkissue12319 messages
2016-08-24 07:47:33martin.pantercreate