From 712c009790681df4e3d51a712490ae5faf9d54f0 Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 3 Mar 2026 20:55:57 -0500 Subject: [PATCH] Hike `testdir.spawn()` timeout on non-linux in CI --- tests/devx/conftest.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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?