A miniature pytest suite for exercising flaky-hunter:
test_flaky.py::test_clock_parity_is_evenreads the wall clock and fails when the nanosecond count is even (~50% per process, no seed) — a genuinely nondeterministic flake that varies across separate pytest runs.test_stable.pyholds three deterministic tests that always pass.
Run the hunter over it:
python -m flaky_hunter --runs 10 --workdir examples/flaky_demoExpected: test_flaky.py::test_clock_parity_is_even is reported as flaky with
cause nondeterministic, while the test_stable.py tests are not flagged.