Skip to content

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

Merge middleware tests back as we don't need to set the setting anymore.

Andrey Rakhmatullin16787f5bf447
diff --git a/tests/test_downloadermiddleware.py b/tests/test_downloadermiddleware.py
index c5c4d13bd..3943cecf7 100644
--- a/tests/test_downloadermiddleware.py
+++ b/tests/test_downloadermiddleware.py
@@ -233,12 +233,7 @@ class MiddlewareUsingCoro(ManagerTestCase):
self.assertIs(results[0], resp)
self.assertFalse(download_func.called)
-
-class MiddlewareUsingCoroAsyncio(ManagerTestCase):
-
- settings_dict = {'ASYNCIO_ENABLED': True}
-
+ @mark.only_asyncio()
def test_asyncdef_asyncio(self):
resp = Response('http://example.com/index.html')