#1290·watchdog

test_late_double_deletion is flaky on Linux 3.14t

Author: MohammedAlkindiCreated Sep 22, 2026Updated Sep 23, 2026

tests/test_inotify_c.py::test_late_double_deletion fails on Linux 3.14t on branches that cannot affect it. Over the last 40 Tests runs, 3 of 16 Linux 3.14t jobs failed, all on this test at the same line. A fourth landed on #1289 after that sample, so four are known.

tests/test_inotify_c.py:135: _queue.Empty
    event = event_queue.get(timeout=5)[0]

The diffs rule the branches out. #1263 touches patterns.py, #1285 touches api.py, and #1289 adds a single test to tests/test_observers_winapi.py, a module that skips at collection on Linux. None goes near inotify_c.py, and master's four most recent completed Linux 3.14t jobs pass the test.

It looks specific to that job, not to free-threading generally. No macOS 3.14t or Linux 3.13t job failed this test; their only failures were test_passing_bytes_should_give_bytes and test___init__, both in run 34241623142, where ~31 jobs failed on 31 different tests.

Lines 134-140 make eight blocking event_queue.get(timeout=5) calls while the real InotifyFD reader thread decodes the faked buffer; the 5 is a bare literal repeated at each call site. #1128 and #1280 both track free-threading flakiness, but neither names this test.

Failing jobs: 101440960168, 101659157306, 104063215203 from the sample, plus 106626452843 on #1289.