diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-12 16:27:48 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-12 16:27:48 +0300 |
commit | 1468499979068a1d92d6bdeaf6f6de39441c0853 (patch) | |
tree | 9008bd08940f302e9fd8490f7b4c6f8d28ee9073 /Lib/test | |
parent | c800b92033a8844ff1c65c565c781514b7df5e16 (diff) | |
download | cpython-1468499979068a1d92d6bdeaf6f6de39441c0853.tar.gz |
Issue #27289: Prevent test_urllib2net failures due to EOFError raised by ftplib
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/support/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index e124fab610..c9e36fb159 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1349,7 +1349,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): 500 <= err.code <= 599) or (isinstance(err, urllib.error.URLError) and (("ConnectionRefusedError" in err.reason) or - ("TimeoutError" in err.reason))) or + ("TimeoutError" in err.reason) or + ("EOFError" in err.reason))) or n in captured_errnos): if not verbose: sys.stderr.write(denied.args[0] + "\n") |