summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-06 07:59:59 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-02-06 07:59:59 -0500
commit703c2c5f4f8e995f2b956b749c7a01baa0ebe2fc (patch)
treee9b73d2e98299744b8b05ed1fef560a91826cf31
parent4fd560ab4c979bf17a3592370162d107e6b3856d (diff)
downloadcherrypy-703c2c5f4f8e995f2b956b749c7a01baa0ebe2fc.tar.gz
Fix test failure on Python 3.5
-rw-r--r--cherrypy/test/test_conn.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cherrypy/test/test_conn.py b/cherrypy/test/test_conn.py
index bf7e9cb6..f602a77b 100644
--- a/cherrypy/test/test_conn.py
+++ b/cherrypy/test/test_conn.py
@@ -757,6 +757,13 @@ for _ in ("ECONNRESET", "WSAECONNRESET"):
if _ in dir(errno):
socket_reset_errors.append(getattr(errno, _))
+socket_reset_errors += [
+ # Python 3.5 raises an http.client.RemoteDisconnected
+ # with this message
+ "Remote end closed connection without response",
+]
+
+
class LimitedRequestQueueTests(helper.CPWebCase):
setup_server = staticmethod(setup_upload_server)