Configure ``pytest`` to prevent pip from installing pytest in unsupported Python versions.