Kaydet (Commit) 03883624 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) and

gaierror(EAI_NODATA)
üst 29f1bb32
......@@ -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
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment