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

Consolidated warnings control #735

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Consolidated warnings control #735

merged 1 commit into from
Aug 21, 2020

Conversation

andy-maier
Copy link
Contributor

See commit message.

@andy-maier andy-maier self-assigned this Aug 20, 2020
@andy-maier andy-maier added this to the 0.8.0 milestone Aug 20, 2020
@andy-maier andy-maier linked an issue Aug 20, 2020 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Aug 20, 2020

Coverage Status

Coverage increased (+0.005%) to 91.88% when pulling f91333c on andy/warnings into 24cc69c on master.

Details:

* Before this change, Python warnings were controlled by the PYTHONWARNINGS
  env var, and the deprecation messages in pywbemcli were controlled by
  the `--deprecation-warnings` / `--no-deprecation-warnings` general options.

  This change consolidates the warnings control such that the deprecation
  messages were changed to be issued as Python warnings, and these options
  were remamed to `--warn` / `--no-warn` and control the display of all
  Python warnings. If `--warn` is used, all Python warnings are shown once.
  If `--no-warn` is used (default), the `PYTHONWARNINGS` environment variable
  determines which warnings are shown. If that variable is not set, no
  warnings are shown.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
@andy-maier andy-maier merged commit 29d8ea1 into master Aug 21, 2020
@andy-maier andy-maier deleted the andy/warnings branch August 21, 2020 06:21
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.

Disable warnings in interactive mode
3 participants