summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-05-06 10:18:12 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-05-06 10:28:53 -0600
commitb85a4ddaf36ef1b9b324d2671ea4659dcb12245a (patch)
tree7e6b2a1944d8b53df995376668b94d4f28362a16 /numpy/testing
parentbc32adacdc672defed613c7adffa88dedb217b80 (diff)
downloadnumpy-b85a4ddaf36ef1b9b324d2671ea4659dcb12245a.tar.gz
MAINT:Ignore boolean '-' deprecation warnings in nosetester.py
This allows numpy 1.9 testing to be used with current scipy without flooding the output with deprecation warnings. The deprecation warnings are currently issued for both the subtract and negative operators when used with booleans.
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/nosetester.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index 21f3feb6f..a06d559e7 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -419,6 +419,10 @@ class NoseTester(object):
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
warnings.filterwarnings("ignore", category=ModuleDeprecationWarning)
warnings.filterwarnings("ignore", category=FutureWarning)
+ # Filter out boolean '-' deprecation messages. This allows
+ # older versions of scipy to test without a flood of messages.
+ warnings.filterwarnings("ignore", message=".*boolean negative.*")
+ warnings.filterwarnings("ignore", message=".*boolean subtract.*")
from .noseclasses import NumpyTestProgram