Fix CVE-2025-71176: upgrade pytest to ^9.0.3 (#2115)