mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-06 11:00:46 +00:00
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…
x
Reference in New Issue
Block a user