Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix test_proxy_connect.py for py3.5.
Andrey Rakhmatullina5eb59b92d33
diff --git a/tests/test_proxy_connect.py b/tests/test_proxy_connect.pyindex 5e9470e39..f6381b5b1 100644--- a/tests/test_proxy_connect.py+++ b/tests/test_proxy_connect.py@@ -117,7 +117,7 @@ class ProxyConnectTestCase(TestCase):with LogCapture() as l:yield crawler.crawl(seed=request)self._assert_got_response_code(200, l)- echo = json.loads(crawler.spider.meta['responses'][0].body)+ echo = json.loads(crawler.spider.meta['responses'][0].body.decode('utf-8'))self.assertTrue('Proxy-Authorization' not in echo['headers'])@pytest.mark.xfail(reason='mitmproxy gives an error for noconnect requests')