diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2012-03-15 13:32:49 +0100 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2012-03-15 13:32:49 +0100 |
commit | 26f502979d5cc577262a3dceca2e5a879f04390f (patch) | |
tree | b52a221b66981f6bf9ea12953fb079672451cac8 | |
parent | 6b986a63c48267069b982797fad0e4bf3ba12949 (diff) | |
download | logilab-common-26f502979d5cc577262a3dceca2e5a879f04390f.tar.gz |
fix 2b1382b96eb4 by enabling DeprecationWarning only
The changeset above intended to only display DeprecationWarning. But it also
enables ImportWarning. There is a lot of ImportWarning and most of them are
useless.
This changeset only enable DeprecationWarning and keep ImportWarning quiet
-rw-r--r-- | ChangeLog | 1 | ||||
-rwxr-xr-x | bin/pytest | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,7 @@ ChangeLog for logilab.common -- * texutils: apply_units raise ValueError if string isn'nt valid (closes #88808) + * pytest: do not enable extra warning other than DeprecationWarning. 2011-10-28 -- 0.57.1 * daemon: change $HOME after dropping privileges (closes #81297) @@ -1,4 +1,7 @@ -#!/usr/bin/python -uWdefault +#!/usr/bin/python -u + +import warnings +warnings.simplefilter('default', DeprecationWarning) from logilab.common.pytest import run run() |