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
ea2835a8
Commit
ea2835a8
authored
Mar 14, 2007
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise ResourceDenied in test_urllib2net when the Net connection goes bad.
parent
ed001842
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_urllib2net.py
Lib/test/test_urllib2net.py
+2
-1
Misc/NEWS
Misc/NEWS
+2
-1
No files found.
Lib/test/test_urllib2net.py
View file @
ea2835a8
...
...
@@ -264,6 +264,7 @@ class OtherNetworkTests(unittest.TestCase):
(
expected_err
,
url
,
req
,
err
))
self
.
assert_
(
isinstance
(
err
,
expected_err
),
msg
)
else
:
with
test_support
.
transient_internet
():
buf
=
f
.
read
()
f
.
close
()
debug
(
"read %d bytes"
%
len
(
buf
))
...
...
Misc/NEWS
View file @
ea2835a8
...
...
@@ -624,7 +624,8 @@ Extension Modules
Tests
-----
- Capture and silence socket connection resets and timeouts in test_socket_ssl.
- Capture socket connection resets and timeouts in test_socket_ssl and
test_urllib2net and raise test.test_support.ResourceDenied.
- Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
...
...
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