From: Colin Watson Date: Sun, 27 Sep 2026 00:03:48 +0100 Subject: Fix tests when run without --headed Last-Update: 2026-09-27 --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index 94336d3..a3313a1 100644 --- a/conftest.py +++ b/conftest.py @@ -9,7 +9,7 @@ def pytest_configure(config): # stash it somewhere global-ish from polymorphic import tests - tests.HEADLESS = not config.getoption("--headed") + tests.HEADLESS = not config.getoption("--headed", default=False) def first_breakable_line(obj) -> tuple[str, int]: