Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] --pdb: Friendlier default (use warning and infer --reruns 0) #248

Open
tony opened this issue Feb 15, 2024 · 0 comments
Open

[RFC] --pdb: Friendlier default (use warning and infer --reruns 0) #248

tony opened this issue Feb 15, 2024 · 0 comments

Comments

@tony
Copy link
Member

tony commented Feb 15, 2024

Assume pyproject.toml:

[tool.pytest.ini_options]
addopts = "--reruns 2"

Current behavior

Right now, passing --pdb will raise:

ERROR: --reruns incompatible with --pdb

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

@tony tony changed the title RFC: --pdb: Change to warning and infer --reruns 0 [RFC] --pdb: Friendlier default (use warning and infer --reruns 0) Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant