mirror of https://github.com/scrapy/scrapy.git
Use self
This commit is contained in:
parent
9417de1df9
commit
43e789f776
|
|
@ -170,8 +170,8 @@ class MainTestCase(TestCase):
|
|||
class TestSpider(Spider):
|
||||
name = "test"
|
||||
|
||||
async def start(spider):
|
||||
await spider.crawler.signals.wait_for(signals.scheduler_empty)
|
||||
async def start(self):
|
||||
await self.crawler.signals.wait_for(signals.scheduler_empty)
|
||||
yield Request("data:,c")
|
||||
|
||||
def parse(self, response):
|
||||
|
|
|
|||
Loading…
Reference in New Issue