How to properly skip a module in pytest when it contains syntax only available in newer Python versions?