[ Web Proxy ]
URL:
Viewing: https://github-redirect.dependabot.com/pytest-dev/pytest/issues/10381 [Back]  [Original]

`--showlocals` should be overridable, e.g. Issue #10381 pytest-dev/pytest GitHub
Skip to content

Navigation Menu

Repository navigation

More items

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

Closed

Description

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

Activity

  1. RonnyPfannschmidt commented on Oct 13, 2022

    Member

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

  2. []Zac-HD
    added
    type: enhancementnew feature or API change, should be merged into features branch
    topic: configrelated to config handling, argument parsing and config file
    on Oct 15, 2022
  3. []Zac-HD
    closed this as completedin #10384on Oct 15, 2022
  4. []jaypikay
    added a commit that references this issue on Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      • []Open in GitHub Copilot app

      Footer

      © 2026 GitHub, Inc.

      Web Proxy Viewer  |  New URL  |  Original Page