Skip to content

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

Little change in test spider that broke the engine test

elpolilla776818db7165
diff --git a/scrapy/trunk/scrapy/tests/test_spiders/testplugin.py b/scrapy/trunk/scrapy/tests/test_spiders/testplugin.py
index 0454db00e..818f6c8ea 100644
--- a/scrapy/trunk/scrapy/tests/test_spiders/testplugin.py
+++ b/scrapy/trunk/scrapy/tests/test_spiders/testplugin.py
@@ -22,9 +22,9 @@ class TestSpider(BaseSpider):
def parse(self, response):
xlink = LinkExtractor()
itemre = re.compile(self.itemurl_re)
- for url in xlink.extract_urls(response):
- if itemre.search(url):
- yield Request(url=url, callback=self.parse_item)
+ for link in xlink.extract_urls(response):
+ if itemre.search(link.url):
+ yield Request(url=link.url, callback=self.parse_item)
def parse_item(self, response):
item = ScrapedItem()