* Revert "limit pytest version to <8.1 (#10334)"
This reverts commit bc95b650a4.
* replace flaky with pytest-rerunfailures
`flaky` project seems to be unmaintained (see box/flaky#192).
`pytest-rerunfailures` seems to be maintained under `pytest-dev`
and tests 5 minor releases of pytest.
Note that this plugin is not compatible with `flaky` plugin.
You will have to uninstall it if it exists.
Sometimes seeing those error out in 2.x and early 3.x with:
```
ERROR: unexpected error - [Errno 95] no more link types left to try out: [Errno 95] Operation not supported
```
It seems like we've fixed it at some point, but I was not able to quickly find a link.