summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2012-03-15 13:32:49 +0100
committerPierre-Yves David <pierre-yves.david@logilab.fr>2012-03-15 13:32:49 +0100
commit26f502979d5cc577262a3dceca2e5a879f04390f (patch)
treeb52a221b66981f6bf9ea12953fb079672451cac8
parent6b986a63c48267069b982797fad0e4bf3ba12949 (diff)
downloadlogilab-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--ChangeLog1
-rwxr-xr-xbin/pytest5
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83734b2..4003c67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/bin/pytest b/bin/pytest
index 0ad0ecb..88f74ae 100755
--- a/bin/pytest
+++ b/bin/pytest
@@ -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()