From c8f88c0411203a0d1a09aadef920c563ef54c12a Mon Sep 17 00:00:00 2001 From: Robert Kern Date: Thu, 3 Jul 2008 08:43:58 +0000 Subject: Clean up test output such that a completely-passing test suite has no extraneous output. --- numpy/lib/tests/test_function_base.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'numpy/lib/tests/test_function_base.py') 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) -- cgit v1.2.1