Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Mark the asyncio pipelines test as only_asyncio.

Andrey Rakhmatullinbdef948aaebc
diff --git a/tests/test_pipelines.py b/tests/test_pipelines.py
index aba6d85b7..6f33282f2 100644
--- a/tests/test_pipelines.py
+++ b/tests/test_pipelines.py
@@ -1,5 +1,6 @@
import asyncio
+from pytest import mark
from twisted.internet import defer
from twisted.internet.defer import Deferred
from twisted.trial import unittest
@@ -92,6 +93,7 @@ class PipelineTestCase(unittest.TestCase):
yield crawler.crawl(mockserver=self.mockserver)
self.assertEqual(len(self.items), 1)
+ @mark.only_asyncio()
@defer.inlineCallbacks
def test_asyncdef_asyncio_pipeline(self):
crawler = self._create_crawler(AsyncDefAsyncioPipeline)