Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Unified Diff: Lib/test/test_urllib.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_urllibnet.py ('k') | Lib/test/test_urlparse.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_urllib.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_urllib.py Mon Jul 25 09:47:18 2011 -0400
@@ -110,9 +110,8 @@
# 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.
- # Use the iterator in the usual implicit way to test for ticket #4608.
- for line in self.returned_obj:
+ # comparison
+ for line in self.returned_obj.__iter__():
self.assertEqual(line, self.text)
class ProxyTests(unittest.TestCase):
« no previous file with comments | « Lib/test/test_urllibnet.py ('k') | Lib/test/test_urlparse.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+