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
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Disable reruns with a warning instead of erroring under --pdb (#374)
* Disable reruns with a warning instead of erroring under --pdb
Combining --pdb with --reruns/--force-reruns/a flaky marker previously
raised a UsageError. Someone reaching for the debugger almost never wants
reruns, so warn and run each test once instead.
Closes#248.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Do not let -W error escalate the --pdb reruns warning
Escalated PytestWarning instances (from -W error or
filterwarnings = error) are caught and re-emitted under an
"always" filter so the run continues with reruns disabled
instead of aborting with an INTERNALERROR, and the warning is
still recorded for the warnings summary. Also bump the
issue_config_time_warning stacklevel to 3 so the warning points
at check_options() rather than the helper's internals.
Co-Authored-By: Louis Deconinck <louis.dck@gmail.com>
---------
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Michael Howitz <icemac@gmx.net>
0 commit comments