From 624b33dc6a83dc9b7933a99a191378547d442324 Mon Sep 17 00:00:00 2001 From: dhuard Date: Tue, 16 Feb 2010 18:52:08 +0000 Subject: removed old behavior for the histogram function. --- numpy/lib/tests/test_function_base.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 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 178237c33..b31453292 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -444,21 +444,10 @@ class TestSinc(TestCase): class TestHistogram(TestCase): def setUp(self): - warnings.simplefilter('ignore', DeprecationWarning) + pass def tearDown(self): - warnings.resetwarnings() - - def test_simple_old(self): - n=100 - v=rand(n) - (a,b)=histogram(v, new=False) - #check if the sum of the bins equals the number of samples - assert_equal(sum(a,axis=0), n) - #check that the bin counts are evenly spaced when the data is from a - # linear function - (a,b)=histogram(linspace(0,10,100), new=False) - assert_array_equal(a, 10) + pass def test_simple(self): n=100 -- cgit v1.2.1