mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -1363,6 +1363,7 @@ class MiscIOTest(unittest.TestCase):
|
|||
self.assertRaises(ValueError, f.fileno)
|
||||
self.assertRaises(ValueError, f.isatty)
|
||||
self.assertRaises(ValueError, f.__iter__)
|
||||
self.assertRaises(ValueError, next, f)
|
||||
if hasattr(f, "peek"):
|
||||
self.assertRaises(ValueError, f.peek, 1)
|
||||
self.assertRaises(ValueError, f.read)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue