mirror of https://github.com/scrapy/scrapy.git
Fix error when running `scrapy bench` (#6633)
This commit is contained in:
parent
cec0aeca58
commit
98a57e2418
|
|
@ -67,6 +67,6 @@ class _BenchSpider(scrapy.Spider):
|
|||
return [scrapy.Request(url, dont_filter=True)]
|
||||
|
||||
def parse(self, response: Response) -> Any:
|
||||
assert isinstance(Response, TextResponse)
|
||||
assert isinstance(response, TextResponse)
|
||||
for link in self.link_extractor.extract_links(response):
|
||||
yield scrapy.Request(link.url, callback=self.parse)
|
||||
|
|
|
|||
|
|
@ -1034,6 +1034,7 @@ class BenchCommandTest(CommandTest):
|
|||
)
|
||||
self.assertIn("INFO: Crawled", log)
|
||||
self.assertNotIn("Unhandled Error", log)
|
||||
self.assertNotIn("log_count/ERROR", log)
|
||||
|
||||
|
||||
class ViewCommandTest(CommandTest):
|
||||
|
|
|
|||
Loading…
Reference in New Issue