mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #4631: Fix urlopen() result when an HTTP response uses chunked encoding.
This commit is contained in:
parent
651453ace0
commit
b353c12a9c
9 changed files with 50 additions and 21 deletions
|
@ -42,7 +42,6 @@ class NoEOFStringIO(io.BytesIO):
|
|||
raise AssertionError('caller tried to read past EOF')
|
||||
return data
|
||||
|
||||
|
||||
class HeaderTests(TestCase):
|
||||
def test_auto_headers(self):
|
||||
# Some headers are added automatically, but should not be added by
|
||||
|
@ -245,7 +244,6 @@ class TimeoutTest(TestCase):
|
|||
self.assertEqual(httpConn.sock.gettimeout(), 30)
|
||||
httpConn.close()
|
||||
|
||||
|
||||
class HTTPSTimeoutTest(TestCase):
|
||||
# XXX Here should be tests for HTTPS, there isn't any right now!
|
||||
|
||||
|
@ -257,7 +255,7 @@ class HTTPSTimeoutTest(TestCase):
|
|||
|
||||
def test_main(verbose=None):
|
||||
support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest,
|
||||
HTTPSTimeoutTest)
|
||||
HTTPSTimeoutTest)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue