Scrapy, a fast high-level web crawling & scraping framework for Python.
Use get_from_asyncio_queue in the pipeline test.
Andrey Rakhmatullin7d859848800e
diff --git a/tests/test_pipelines.py b/tests/test_pipelines.pyindex 6f33282f2..c72f1a338 100644--- a/tests/test_pipelines.py+++ b/tests/test_pipelines.py@@ -6,7 +6,7 @@ from twisted.internet.defer import Deferredfrom twisted.trial import unittestfrom scrapy import Spider, signals, Request-from scrapy.utils.test import get_crawler+from scrapy.utils.test import get_crawler, get_from_asyncio_queuefrom tests.mockserver import MockServer@@ -39,7 +39,7 @@ class AsyncDefPipeline:class AsyncDefAsyncioPipeline:async def process_item(self, item, spider):await asyncio.sleep(0.2)- item['pipeline_passed'] = True+ item['pipeline_passed'] = await get_from_asyncio_queue(True)return item