bitsandbytes
bitsandbytes copied to clipboard
TESTS: add `is_flaky` decorator on flaky tests
What does this PR do?
This PR introduces a new pytest decorator is_flaky that runs tests that have been decorated as being flaky. The decorator will run the test max_attempts times and if the test failed during all these attempts the test will be marked as failed.
Plan forward: identify which tests are flaky and decorate them
cc @Titus-von-Koeller
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
You could also use https://pypi.org/project/pytest-retry/...
Closing this in favor of pytest-retry approach.