diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-10 15:31:51 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-10 15:31:51 +0200 |
commit | 3ed70c10f263653b299575d28faded1a966eb629 (patch) | |
tree | 0074c965a3d528f632ef5994c1b23cf1028f6642 | |
parent | 09a1277540db204d3925e612f7c99326848e4ad4 (diff) | |
download | psutil-3ed70c10f263653b299575d28faded1a966eb629.tar.gz |
enable all python warnings by default during tests - re #1057
-rw-r--r-- | psutil/tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index 22ccc52d..85075d12 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -103,6 +103,11 @@ __all__ = [ ] +# Enable all warnings by default. +if 'PYTHONWARNINGS' not in os.environ: + warnings.simplefilter('always') + + # =================================================================== # --- constants # =================================================================== |