Skip to content

Commit 261073b

Browse files
committed
Skip test_additional_requests_dont_filter_offsite on Scrapy versions where the offside middleware is still a spider middleware
1 parent c53d39b commit 261073b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_downloader.py

+2
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ async def parse(self, response, page: ItemPage):
395395

396396
@inlineCallbacks
397397
def test_additional_requests_dont_filter_offsite() -> None:
398+
pytest.importorskip("scrapy.downloadermiddlewares.offsite")
399+
398400
items = []
399401

400402
with MockServer(EchoResource) as server:

0 commit comments

Comments
 (0)