pytest rerun only failed tests code example Example: pytest run only failed test pytest --last-failed