From 330635c0a82e93a026ea24957fe7b766614f5bda Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 22 Nov 2017 13:55:44 -0800 Subject: [PATCH] fix test in py<=3.4 --- setup.py | 2 +- tests/test_warcprox.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 49003f7..d81ac6a 100755 --- a/setup.py +++ b/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', diff --git a/tests/test_warcprox.py b/tests/test_warcprox.py index 5f426fc..5afd906 100755 --- a/tests/test_warcprox.py +++ b/tests/test_warcprox.py @@ -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): '''