Skip to content

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

move comment about test skipped on py3 into a proper place

Konstantin Lopuhinde98d8d00658
diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.py
index e6d219168..c936b72ed 100644
--- a/tests/test_downloader_handlers.py
+++ b/tests/test_downloader_handlers.py
@@ -327,12 +327,12 @@ class Http11MockServerTestCase(unittest.TestCase):
request = request.replace(url='http://localhost:8998/xpayload')
yield crawler.crawl(seed=request)
# download_maxsize = 50 is enough for the gzipped response
- # See issue https://twistedmatrix.com/trac/ticket/8175
failure = crawler.spider.meta.get('failure')
self.assertTrue(failure == None)
reason = crawler.spider.meta['close_reason']
self.assertTrue(reason, 'finished')
else:
+ # See issue https://twistedmatrix.com/trac/ticket/8175
raise unittest.SkipTest("xpayload only enabled for PY2")
else:
raise unittest.SkipTest("xpayload and payload endpoint only enabled for twisted > 12.3.0")