[Python-checkins] r59662 - python/trunk/Lib/test/test_urllib.py

kurt.kaiser python-checkins at python.org
Wed Jan 2 06:23:39 CET 2008


Author: kurt.kaiser
Date: Wed Jan 2 06:23:38 2008
New Revision: 59662
Modified:
 python/trunk/Lib/test/test_urllib.py
Log:
Change docstrings to comments so test output will display normally.
Modified: python/trunk/Lib/test/test_urllib.py
==============================================================================
--- python/trunk/Lib/test/test_urllib.py	(original)
+++ python/trunk/Lib/test/test_urllib.py	Wed Jan 2 06:23:38 2008
@@ -127,7 +127,7 @@
 self.unfakehttp()
 
 def test_read_bogus(self):
- "urlopen() should raise IOError for many error codes."
+ # urlopen() should raise IOError for many error codes.
 self.fakehttp('''HTTP/1.1 401 Authentication Required
 Date: 2008年1月02日 03:03:54 GMT
 Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e
@@ -140,8 +140,8 @@
 self.unfakehttp()
 
 def test_empty_socket(self):
- """urlopen() raises IOError if the underlying socket does not send any
- data. (#1680230) """
+ # urlopen() raises IOError if the underlying socket does not send any
+ # data. (#1680230)
 self.fakehttp('')
 try:
 self.assertRaises(IOError, urllib.urlopen, 'http://something')


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /