| 1 |
From: Colin Watson <[email protected]> |
| 2 |
Date: Sun, 27 Sep 2026 00:03:48 +0100 |
| 3 |
Subject: Fix tests when run without --headed |
| 4 |
|
| 5 |
Last-Update: 2026-09-27 |
| 6 |
--- |
| 7 |
conftest.py | 2 +- |
| 8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 |
|
| 10 |
diff --git a/conftest.py b/conftest.py |
| 11 |
index 94336d3..a3313a1 100644 |
| 12 |
--- a/conftest.py |
| 13 |
+++ b/conftest.py |
| 14 |
@@ -9,7 +9,7 @@ def pytest_configure(config): |
| 15 |
# stash it somewhere global-ish |
| 16 |
from polymorphic import tests |
| 17 |
|
| 18 |
- tests.HEADLESS = not config.getoption("--headed") |
| 19 |
+ tests.HEADLESS = not config.getoption("--headed", default=False) |
| 20 |
|
| 21 |
|
| 22 |
def first_breakable_line(obj) -> tuple[str, int]: |