1
0
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:
Lidiane T 2025-01-27 10:21:30 +00:00 committed by GitHub
parent cec0aeca58
commit 98a57e2418
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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):