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
03883624
Commit
03883624
authored
May 27, 2010
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) and
gaierror(EAI_NODATA)
parent
29f1bb32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/test/test_support.py
Lib/test/test_support.py
+3
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_support.py
View file @
03883624
...
...
@@ -757,7 +757,9 @@ def transient_internet():
time_out
=
TransientResource
(
IOError
,
errno
=
errno
.
ETIMEDOUT
)
socket_peer_reset
=
TransientResource
(
socket
.
error
,
errno
=
errno
.
ECONNRESET
)
ioerror_peer_reset
=
TransientResource
(
IOError
,
errno
=
errno
.
ECONNRESET
)
with
time_out
,
socket_peer_reset
,
ioerror_peer_reset
:
dns_nodata
=
TransientResource
(
socket
.
gaierror
,
errno
=
socket
.
EAI_NODATA
)
dns_noname
=
TransientResource
(
socket
.
gaierror
,
errno
=
socket
.
EAI_NONAME
)
with
time_out
,
socket_peer_reset
,
ioerror_peer_reset
,
dns_nodata
,
dns_noname
:
yield
...
...
Misc/NEWS
View file @
03883624
...
...
@@ -78,6 +78,9 @@ Extension Modules
Tests
-----
- Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME)
and gaierror(EAI_NODATA)
- Issue #7449: Skip test_socketserver if threading support is disabled
- On darwin, ``test_site`` assumed that a framework build was being used,
...
...
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