docs: AGENTS.md names the platforms() marker, not the retired trio

This commit is contained in:
ethernet
2026-09-18 22:55:59 -04:00
parent cb7c688171
commit cf61742a47

View File

@@ -393,8 +393,8 @@ scripts/run_tests.sh -v --tb=long # pytest flags pass thro
### Don't fake the host OS
Behaviour that genuinely differs per host is tested ON that host with `@pytest.mark.linux_only`
/ `macos_only` / `windows_only`, never by patching `sys.platform`. Host-independent things stay
Behaviour that genuinely differs per host is tested ON that host with `@pytest.mark.platforms("linux")`
/ `platforms("macos")` / `platforms("windows")`, never by patching `sys.platform`. Host-independent things stay
unmarked: pure functions that take the platform as data (`hidden_windows_child_options(opts,
is_windows=True)`) and declaration/packaging invariants ("pyproject declares `tzdata` with a
`sys_platform == 'win32'` marker"). Setting a module-level `IS_WINDOWS` flag and calling