Extend https://github.com/pytest-dev/pytest-rerunfailures/issues/101 to support the same functionality in `pytest.mark`. Example: `@pytest.mark.flaky(only_rerun=MyException)`.
Extend #101 to support the same functionality in
pytest.mark.Example:
@pytest.mark.flaky(only_rerun=MyException).