diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-07-03 08:43:58 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-07-03 08:43:58 +0000 |
commit | c8f88c0411203a0d1a09aadef920c563ef54c12a (patch) | |
tree | c56f0999d8202544352b6714d38a599a30ababe8 /numpy/lib/tests/test_function_base.py | |
parent | 638f015c904d32e0f89604d088731a3ad2daccfd (diff) | |
download | numpy-c8f88c0411203a0d1a09aadef920c563ef54c12a.tar.gz |
Clean up test output such that a completely-passing test suite has no extraneous output.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index c8555e82e..0be1a22b7 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1,4 +1,5 @@ import sys +import warnings from numpy.testing import * import numpy.lib @@ -425,8 +426,12 @@ class TestSinc(TestCase): assert_array_almost_equal(w,flipud(w),7) class TestHistogram(TestCase): - import warnings - warnings.simplefilter('ignore', FutureWarning) + def setUp(self): + warnings.simplefilter('ignore', FutureWarning) + + def tearDown(self): + warnings.resetwarnings() + def test_simple(self): n=100 v=rand(n) |