diff options
| author | Raymond Hettinger <python@rcn.com> | 2011-06-26 14:29:35 +0200 | 
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2011-06-26 14:29:35 +0200 | 
| commit | 038018aaa4c4d1c8df7952adaa4df14ec3333496 (patch) | |
| tree | 8b30de00744a81c33b9e8b2e01716a3ef513e144 /Lib/test | |
| parent | 4850d52b4debbd8ed8ba6a41e697fa8fdaf7ae96 (diff) | |
| download | cpython-git-038018aaa4c4d1c8df7952adaa4df14ec3333496.tar.gz | |
Issue #4608: urllib.request.urlopen does not return an iterable object
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_urllib.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 7bb8a098c7..3a806bff16 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -110,8 +110,9 @@ class urlopen_FileTests(unittest.TestCase):          # Test iterator          # Don't need to count number of iterations since test would fail the          # instant it returned anything beyond the first line from the -        # comparison -        for line in self.returned_obj.__iter__(): +        # comparison. +        # Use the iterator in the usual implicit way to test for ticket #4608. +        for line in self.returned_obj:              self.assertEqual(line, self.text)  class ProxyTests(unittest.TestCase): | 
