fix test in py<=3.4

This commit is contained in:
Noah Levitt 2017-11-22 13:55:44 -08:00
parent 5be289730f
commit 330635c0a8
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ except:
setuptools.setup(
name='warcprox',
version='2.2.1b2.dev122',
version='2.2.1b2.dev123',
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',

View File

@ -1653,12 +1653,12 @@ def test_empty_response(
url = 'http://localhost:%s/empty-response' % http_daemon.server_port
response = requests.get(url, proxies=archiving_proxies, verify=False)
assert response.status_code == 502
assert response.reason == 'Remote end closed connection without response'
# this is the reason in python >= 3.5 but not in 3.4 and 2.7
# assert response.reason == 'Remote end closed connection without response'
url = 'https://localhost:%s/empty-response' % https_daemon.server_port
response = requests.get(url, proxies=archiving_proxies, verify=False)
assert response.status_code == 502
assert response.reason == 'Remote end closed connection without response'
def test_payload_digest(warcprox_, http_daemon):
'''