(self)
| 385 | |
| 386 | class TestIncompatibility: |
| 387 | def _incompatible(self): |
| 388 | settings = { |
| 389 | "SCHEDULER_PRIORITY_QUEUE": "scrapy.pqueues.DownloaderAwarePriorityQueue", |
| 390 | "CONCURRENT_REQUESTS_PER_IP": 1, |
| 391 | } |
| 392 | crawler = get_crawler(Spider, settings) |
| 393 | scheduler = Scheduler.from_crawler(crawler) |
| 394 | spider = Spider(name="spider") |
| 395 | scheduler.open(spider) |
| 396 | |
| 397 | def test_incompatibility(self): |
| 398 | with warnings.catch_warnings(): |
no test coverage detected