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

--showlocals should be overridable, e.g. #10381

Closed
tony opened this issue Oct 13, 2022 · 1 comment · Fixed by #10384
Closed

--showlocals should be overridable, e.g. #10381

tony opened this issue Oct 13, 2022 · 1 comment · Fixed by #10384
Labels
topic: config related to config handling, argument parsing and config file type: enhancement new feature or API change, should be merged into features branch

Comments

@tony
Copy link
Member

tony commented Oct 13, 2022

What's the problem this feature will solve?

  • Assume addopts is globally set to have --showlocals
  • It's not possible for py.test invocations to override the option on one-off invocations / pytest steps in CI workflows

Describe the solution you'd like

--showlocals=false or --no-showlocals / --without-locals

Alternative Solutions

Open to hearing others

Additional context

Mentioned earlier here: #8974 (comment)

This differs from #8974 in:

  • being narrowly tailored solution wise - allow an argument to negate the locals showing
  • has a technical solution that can be addressed directly PR'd if maintainers willing
@RonnyPfannschmidt
Copy link
Member

as this is a flag, --no-showlocals should probably be added

@Zac-HD Zac-HD added type: enhancement new feature or API change, should be merged into features branch topic: config related to config handling, argument parsing and config file labels Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: config related to config handling, argument parsing and config file type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants