mirror of https://github.com/scrapy/scrapy.git
Fix direct use of Crawler instead of get_crawler failing with the default reactor
This commit is contained in:
parent
53841ff419
commit
a8a596b287
|
|
@ -453,7 +453,7 @@ class TestCrawlSpider(TestSpider):
|
|||
name = "test"
|
||||
start_url = "https://www.example.com"
|
||||
|
||||
crawler = Crawler(TestSpider)
|
||||
crawler = get_crawler(TestSpider)
|
||||
with LogCapture("scrapy.core.engine", propagate=False, level=ERROR) as log:
|
||||
yield crawler.crawl()
|
||||
log.check(
|
||||
|
|
|
|||
Loading…
Reference in New Issue