Skip to content

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

py3 compat: use range, fixes CrawlTestCase.test_start_requests_bug_yielding

Konstantin Lopuhinad2b3321b902
diff --git a/tests/spiders.py b/tests/spiders.py
index 516062929..711d80cac 100644
--- a/tests/spiders.py
+++ b/tests/spiders.py
@@ -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})