Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Only xfail test_https_connect_tunnel_error on 3.6+.

Andrey Rakhmatullin3c9963ab049e
diff --git a/tests/test_proxy_connect.py b/tests/test_proxy_connect.py
index 651576c2c..ec3f0716c 100644
--- a/tests/test_proxy_connect.py
+++ b/tests/test_proxy_connect.py
@@ -92,7 +92,7 @@ class ProxyConnectTestCase(TestCase):
yield crawler.crawl(self.mockserver.url("/status?n=200", is_secure=True))
self._assert_got_response_code(200, l)
- @pytest.mark.xfail(reason='Python 3 fails this earlier')
+ @pytest.mark.xfail(reason='Python 3.6+ fails this earlier', condition=sys.version_info.minor >= 6)
@defer.inlineCallbacks
def test_https_connect_tunnel_error(self):
crawler = get_crawler(SimpleSpider)