Scrapy, a fast high-level web crawling & scraping framework for Python.
Also skip test_asyncdef_asyncio on old Twisted versions
Adrián Chavesfea5a1189938
diff --git a/tests/test_downloadermiddleware.py b/tests/test_downloadermiddleware.pyindex 6168e0176..b538a0ed3 100644--- a/tests/test_downloadermiddleware.py+++ b/tests/test_downloadermiddleware.py@@ -248,6 +248,12 @@ class MiddlewareUsingCoro(ManagerTestCase):@mark.only_asyncio()def test_asyncdef_asyncio(self):+ if twisted_version < Version('twisted', 18, 4, 0):+ raise SkipTest(+ 'Due to https://twistedmatrix.com/trac/ticket/9390, this test '+ 'hangs when using Twisted versions lower than 18.4.0'+ )+resp = Response('http://example.com/index.html')class CoroMiddleware: