1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 02:32:41 +00:00

Only xfail test_https_connect_tunnel_error on 3.6+.

This commit is contained in:
Andrey Rakhmatullin 2019-11-01 19:46:38 +05:00
parent 5080180c75
commit 5970d00eb9

View File

@ -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)