Why does pytest assertion rewrite fail on files starting with a number?