Commit ce8f5ded authored by Ned Deily's avatar Ned Deily

Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.

parent d357b89f
...@@ -1327,7 +1327,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): ...@@ -1327,7 +1327,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
(isinstance(err, urllib.error.HTTPError) and (isinstance(err, urllib.error.HTTPError) and
500 <= err.code <= 599) or 500 <= err.code <= 599) or
(isinstance(err, urllib.error.URLError) and (isinstance(err, urllib.error.URLError) and
"ConnectionRefusedError" in err.reason) or (("ConnectionRefusedError" in err.reason) or
("TimeoutError" in err.reason))) or
n in captured_errnos): n in captured_errnos):
if not verbose: if not verbose:
sys.stderr.write(denied.args[0] + "\n") sys.stderr.write(denied.args[0] + "\n")
......
...@@ -455,6 +455,8 @@ Tests ...@@ -455,6 +455,8 @@ Tests
- Issue #23345: Prevent test_ssl failures with large OpenSSL patch level - Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
values (like 0.9.8zc). values (like 0.9.8zc).
- Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.
Build Build
----- -----
......
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