Skip to content

Commit fa9f4f6

Browse files
author
MarcoFalke
committed
test: Remove python 3.4 workaround
1 parent fae760f commit fa9f4f6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/functional/test_framework/authproxy.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,9 @@ def _request(self, method, path, postdata):
105105
try:
106106
self.__conn.request(method, path, postdata, headers)
107107
return self._get_response()
108-
except http.client.BadStatusLine as e:
109-
if e.line == "''": # if connection was closed, try again
110-
self.__conn.close()
111-
self.__conn.request(method, path, postdata, headers)
112-
return self._get_response()
113-
else:
114-
raise
115108
except (BrokenPipeError, ConnectionResetError):
116-
# Python 3.5+ raises BrokenPipeError instead of BadStatusLine when the connection was reset
117-
# ConnectionResetError happens on FreeBSD with Python 3.4
109+
# Python 3.5+ raises BrokenPipeError when the connection was reset
110+
# ConnectionResetError happens on FreeBSD
118111
self.__conn.close()
119112
self.__conn.request(method, path, postdata, headers)
120113
return self._get_response()

0 commit comments

Comments
 (0)