You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pytest -k test_flaky_test --fail-on-flaky
...
File "$HOME/.local/share/virtualenvs/<venv>/lib/python3.9/site-packages/pytest_rerunfailures.py", line 632, in pytest_sessionfinish
if session.config.getvalue("reruns") > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered:
ricardo-passthrough
changed the title
--fail-on-flaky not compatible with fixture configuration
--fail-on-flaky not compatible with mark usage
Feb 13, 2025
--fail-on-flaky
only exits with code 7 if--reruns
is passed via CLI. Otherwise it breaks the execution regardless of flakiness.Also the implementation implies if I add
--reruns
i want this to always return exit status 7... this was not what I was expecting.test_flaky.py:
The text was updated successfully, but these errors were encountered: