Open tony opened 7 months ago
Assume pyproject.toml:
pyproject.toml
[tool.pytest.ini_options] addopts = "--reruns 2"
Right now, passing --pdb will raise:
--pdb
ERROR: --reruns incompatible with --pdb
--reruns 0
It's highly unlikely a person attempting to drop into a shell wants reruns. Rather than error, show a warning:
WARNING: --reruns incompatible with --pdb, --reruns will behave as if set to 0
Assume
pyproject.toml
:Current behavior
Right now, passing
--pdb
will raise:Better: Assume
--reruns 0
if--pdb
It's highly unlikely a person attempting to drop into a shell wants reruns. Rather than error, show a warning:
WARNING: --reruns incompatible with --pdb, --reruns will behave as if set to 0