Scrapy, a fast high-level web crawling & scraping framework for Python.
Add only_not_asyncio.
Andrey Rakhmatullind658552f2325
diff --git a/conftest.py b/conftest.pyindex 68b855c08..407bf9e62 100644--- a/conftest.py+++ b/conftest.py@@ -55,5 +55,11 @@ def only_asyncio(request, reactor_pytest):pytest.skip('This test is only run with --reactor=asyncio')[email protected](autouse=True)+def only_not_asyncio(request, reactor_pytest):+ if request.node.get_closest_marker('only_not_asyncio') and reactor_pytest == 'asyncio':+ pytest.skip('This test is only run without --reactor=asyncio')++# Generate localhost certificate files, needed by some testsgenerate_keys()diff --git a/pytest.ini b/pytest.iniindex d4deeb57c..416b228f9 100644--- a/pytest.ini+++ b/pytest.ini@@ -21,6 +21,7 @@ addopts =twisted = 1markers =only_asyncio: marks tests as only enabled when --reactor=asyncio is passed+ only_not_asyncio: marks tests as only enabled when --reactor=asyncio is not passedflake8-max-line-length = 119flake8-ignore =W503