summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-12 16:27:48 +0300
committerBerker Peksag <berker.peksag@gmail.com>2016-06-12 16:27:48 +0300
commit1468499979068a1d92d6bdeaf6f6de39441c0853 (patch)
tree9008bd08940f302e9fd8490f7b4c6f8d28ee9073 /Lib/test
parentc800b92033a8844ff1c65c565c781514b7df5e16 (diff)
downloadcpython-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__.py3
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")