1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 22:44:03 +00:00

py3 compat: use range, fixes CrawlTestCase.test_start_requests_bug_yielding

This commit is contained in:
Konstantin Lopuhin 2016-01-19 13:13:41 +03:00
parent 0680950b98
commit ad2b3321b9

View File

@ -119,7 +119,7 @@ class BrokenStartRequestsSpider(FollowAllSpider):
if self.fail_before_yield:
1 / 0
for s in xrange(100):
for s in range(100):
qargs = {'total': 10, 'seed': s}
url = "http://localhost:8998/follow?%s" % urlencode(qargs, doseq=1)
yield Request(url, meta={'seed': s})