diff --git a/tests/devx/conftest.py b/tests/devx/conftest.py index c850da7a..c194026c 100644 --- a/tests/devx/conftest.py +++ b/tests/devx/conftest.py @@ -3,8 +3,9 @@ ''' from __future__ import annotations -import time +import platform import signal +import time from typing import ( Callable, TYPE_CHECKING, @@ -33,6 +34,9 @@ if TYPE_CHECKING: from pexpect import pty_spawn +_non_linux: bool = platform.system() != 'Linux' + + def pytest_configure(config): # register custom marks to avoid warnings see, # https://docs.pytest.org/en/stable/how-to/writing_plugins.html#registering-custom-markers @@ -94,7 +98,10 @@ def spawn( cmd, **mkcmd_kwargs, ), - expect_timeout=3, + expect_timeout=( + 6 if _non_linux and _ci_env + else 3 + ), # preexec_fn=unset_colors, # ^TODO? get `pytest` core to expose underlying # `pexpect.spawn()` stuff?