move comment about test skipped on py3 into a proper place

This commit is contained in:
Konstantin Lopuhin 2016-01-18 19:27:31 +03:00
parent 7fdd3225b2
commit de98d8d006
1 changed files with 1 additions and 1 deletions

View File

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