`tests/tools/test_bot_turn_lock.py` imports `fcntl` unconditionally at
module level. `fcntl` does not exist on Windows, so the import raises
during collection — and an uncaught collection error is not "skip this
file", it aborts the entire run:
ERROR collecting tests/tools/test_bot_turn_lock.py
E ModuleNotFoundError: No module named 'fcntl'
!!!!! Interrupted: 1 error during collection !!!!!
no tests collected, 1 error
That takes out all of `tests/tools/` on Windows — 7732 collectable tests
— not just this module.
Skip before the import, matching `tests/cli/test_termios_drift_heal.py`.
`pytestmark = pytest.mark.skipif(...)` — the other convention in the tree,
used by `tests/state/test_fts_rebuild_admission.py` — cannot work here:
it is evaluated after the module body has already been imported, so the
`fcntl` import would still raise first. That module gets away with it
because it never imports `fcntl` itself.
Skipping loses no coverage. `acquire_turn_lock()` in tools/bot_relay.py
degrades to a no-op contextmanager on Windows precisely because `fcntl`
is unavailable, so the cross-process flock contention this module asserts
on cannot occur there.
before: no tests collected, 1 error
after: 7732/7739 tests collected; this module reports 1 skipped
(cherry picked from commit 1e7fac955150a647c23f97aceed90bc880b45ad3)