Scrapy, a fast high-level web crawling & scraping framework for Python.
add https 1.1 downloader test - localhost is a valid DNS-ID
Konstantin Lopuhin04f69fd18406
diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.pyindex 84d1aa191..80eed86f2 100644--- a/tests/test_downloader_handlers.py+++ b/tests/test_downloader_handlers.py@@ -119,7 +119,7 @@ class HttpTestCase(unittest.TestCase):r.putChild(b"broken", BrokenDownloadResource())self.site = server.Site(r, timeout=None)self.wrapper = WrappingFactory(self.site)- self.host = '127.0.0.1'+ self.host = 'localhost'if self.scheme == 'https':self.port = reactor.listenSSL(0, self.wrapper, ssl_context_factory(), interface=self.host)@@ -273,6 +273,10 @@ class Http11TestCase(HttpTestCase):return d+class Https11TestCase(Http11TestCase):+ scheme = 'https'++class Http11MockServerTestCase(unittest.TestCase):"""HTTP 1.1 test case with MockServer"""if twisted_version < (11, 1, 0):