A miniature pytest suite that reproduces a classic test-pollution flake:
test_pollute.py::test_sets_env_flagwrites toos.environ.test_target.py::test_assumes_clean_envasserts the same env var is not set.
The target passes when run alone but fails after the polluter has run. Use this
suite as a fixture to exercise flake-bisect:
python -m flake_bisect \
--workdir examples/polluting_demo \
--target test_target.py::test_assumes_clean_envExpected: flake-bisect narrows down to test_pollute.py::test_sets_env_flag.