Fixed issue where the ``--disable-asyncio`` parameter to the test suite
would fail to not actually run greenlet tests and would also not prevent
the suite from using a "wrapping" greenlet for the whole suite. This
parameter now ensures that no greenlet or asyncio use will occur within the
entire run when set.
Fixes: #8793
Change-Id: I87b510846b2cc24413cd54e7b7136e91aad3c309
--- /dev/null
+.. change::
+ :tags: bug, tests
+ :tickets: 8793
+
+ Fixed issue where the ``--disable-asyncio`` parameter to the test suite
+ would fail to not actually run greenlet tests and would also not prevent
+ the suite from using a "wrapping" greenlet for the whole suite. This
+ parameter now ensures that no greenlet or asyncio use will occur within the
+ entire run when set.
config._fixture_functions = _fixture_fn_class()
-@post
+@pre
def _set_disable_asyncio(opt, file_config):
if opt.disable_asyncio:
import platform
+from . import asyncio as _test_asyncio
from . import config
from . import exclusions
from . import only_on
@property
def greenlet(self):
def go(config):
+ if not _test_asyncio.ENABLE_ASYNCIO:
+ return False
+
try:
import greenlet # noqa: F401
except ImportError: