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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敡 --no-showlocals to negate addopts w/ --showlocals #10384

Merged
merged 4 commits into from Oct 15, 2022

Conversation

tony
Copy link
Member

@tony tony commented Oct 14, 2022

Fixes #10381

This is necessary for addopts=--showlocals where individual test runs need to not show locals.

  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

If this change fixes an issue, please:

  • Add text like closes #XYZW to the PR description and/or commits (where XYZW is the issue number). See the github docs for more information.

  • Create a new changelog file in the changelog folder, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.

This is necessary for addopts=--showlocals where individual test runs
need to not show locals.
@tony tony marked this pull request as ready for review October 14, 2022 21:59
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@Zac-HD Zac-HD merged commit 36b6384 into pytest-dev:main Oct 15, 2022
@tony tony deleted the showlocals-negation branch October 15, 2022 17:48
@tony tony changed the title 馃敡 --no-showlocals to negate addopts w/ --showlocals 馃敡 --no-showlocals to negate addopts w/ --showlocals Oct 17, 2022
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

Successfully merging this pull request may close these issues.

--showlocals should be overridable, e.g.
2 participants