mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-23 14:24:19 +00:00
py3 compat: use range, fixes CrawlTestCase.test_start_requests_bug_yielding
This commit is contained in:
parent
0680950b98
commit
ad2b3321b9
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user