Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c2a8f3cd
Commit
c2a8f3cd
authored
Jan 02, 2008
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change docstrings to comments so test output will display normally.
parent
1a6011c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_urllib.py
Lib/test/test_urllib.py
+3
-3
No files found.
Lib/test/test_urllib.py
View file @
c2a8f3cd
...
...
@@ -127,7 +127,7 @@ class urlopen_HttpTests(unittest.TestCase):
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: Wed, 02 Jan 2008 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 @@ Content-Type: text/html; charset=iso-8859-1
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment