diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2016-08-29 22:20:28 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2016-09-02 10:10:55 +0200 |
commit | 2e86117d7ba2b4b0308b05a67b922f6db19a7c02 (patch) | |
tree | c5888328b9f2f633df23ba68e952491b25570e75 /numpy/core | |
parent | f078cb484aa46dd6834c92ac25c587fa36cd727a (diff) | |
download | numpy-2e86117d7ba2b4b0308b05a67b922f6db19a7c02.tar.gz |
TST: Silence warnings otherwise shown in release mode
These are warnings, which when raised as an error for one reason
or another are already silenced.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/tests/test_regression.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index b1d1673dd..5966ff688 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -139,7 +139,7 @@ class TestRegression(TestCase): b = np.linspace(0, 10, 11) # This should return true for now, but will eventually raise an error: with suppress_warnings() as sup: - sup.filter(DeprecationWarning) + sup.filter(FutureWarning) self.assertTrue(b != 'auto') self.assertTrue(b[0] != 'auto') @@ -813,6 +813,7 @@ class TestRegression(TestCase): # and the boolean special case is not taken. with suppress_warnings() as sup: sup.filter(DeprecationWarning) + sup.filter(FutureWarning) sup.filter(np.VisibleDeprecationWarning) self.assertRaises(IndexError, ia, x, s, np.zeros(9, dtype=float)) self.assertRaises(IndexError, ia, x, s, np.zeros(11, dtype=float)) |