# HG changeset patch # Parent 5ae3350af10d77e414979598604059a43c310029 Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout. diff -r 5ae3350af10d Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Sat Mar 21 23:49:52 2015 -0700 +++ b/Lib/test/support/__init__.py Sat Mar 21 23:58:23 2015 -0700 @@ -1328,7 +1328,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")