summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-12 13:27:48 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-12 13:27:48 (GMT)
commitc74cdc71705f7d936dfd51b68c26a6eadc2367d1 (patch)
treef6c3e74e6388f7975a4f36d2bdda4de4a3a77240 /Lib/test/support
parent46fe29de318c628309c2f12bec3a32f7e15ba844 (diff)
downloadcpython-c74cdc71705f7d936dfd51b68c26a6eadc2367d1.zip
cpython-c74cdc71705f7d936dfd51b68c26a6eadc2367d1.tar.gz
cpython-c74cdc71705f7d936dfd51b68c26a6eadc2367d1.tar.bz2
Issue #27289: Prevent test_urllib2net failures due to EOFError raised by ftplib
Diffstat (limited to 'Lib/test/support')
-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 e124fab..c9e36fb 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")