Replace @flaky.flaky decorate with pytest marker#2229
Conversation
Use the `@pytest.mark.flaky` marker in place of the `@flaky.flaky` decorator, to modernize the code and improve compatibility with other plugins providing the feature such as `pytest-rerunfailures`. Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
Sounds great; Thanks for this, I'm going to merge, it would be good if you can link to some docs listing the advantage of this and pytest-rerunfailures vs using flaky directly. |
I'm afraid I don't know of anything specific. The rough idea is that if you As for why |
Use the
@pytest.mark.flakymarker in place of the@flaky.flakydecorator, to modernize the code and improve compatibility with other plugins providing the feature such aspytest-rerunfailures.