mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
fix test in py<=3.4
This commit is contained in:
parent
5be289730f
commit
330635c0a8
2
setup.py
2
setup.py
@ -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',
|
||||
|
@ -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):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user