[Python-checkins] cpython (3.4): Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.

ned.deily python-checkins at python.org
Sun Mar 22 09:19:36 CET 2015


https://hg.python.org/cpython/rev/9eb1ce7d8039
changeset:   95121:9eb1ce7d8039
branch:      3.4
parent:      95119:57a457ea84e4
user:        Ned Deily <nad at acm.org>
date:        Sun Mar 22 01:14:48 2015 -0700
summary:
  Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.

files:
  Lib/test/support/__init__.py |  3 ++-
  Misc/NEWS                    |  2 ++
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1327,7 +1327,8 @@
             (isinstance(err, urllib.error.HTTPError) and
              500 <= err.code <= 599) or
             (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):
             if not verbose:
                 sys.stderr.write(denied.args[0] + "\n")
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -455,6 +455,8 @@
 - Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
   values (like 0.9.8zc).
 
+- Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.
+
 Build
 -----
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list