"""Root pytest config (plan follow-up todo 19: CI test-path split). tests/test_tracker.py and tests/test_robustness.py import numpy/cv2/mediapipe, which live only in tracker/.venv, not the root .venv used for the C-contract mirror tests (test_contract_py.py, test_record_replay.py, test_smoke.py). Running bare pytest from the repo root with the root venv must not collection-error on those imports, so skip collecting any tracker-dependent test module whenever the tracker's CV stack isn't importable. Under tracker/.venv the imports succeed and the full test set (including those two modules) is collected and run normally -- see .github/workflows/ci.yml for the two separate CI steps. """ try: import cv2 # noqa: F401 import mediapipe # noqa: F401 import numpy # noqa: F401 collect_ignore = [] except ImportError: collect_ignore = ["tests/test_tracker.py", "tests/test_robustness.py"]