diff options
author | dhuard <dhuard@localhost> | 2010-02-16 18:52:08 +0000 |
---|---|---|
committer | dhuard <dhuard@localhost> | 2010-02-16 18:52:08 +0000 |
commit | 624b33dc6a83dc9b7933a99a191378547d442324 (patch) | |
tree | d985eba44164894daeca3505ada12bb779ee49b4 /numpy/lib/tests/test_function_base.py | |
parent | 8cdc4520e7de79f2edaa261f8de53211d26dbea7 (diff) | |
download | numpy-624b33dc6a83dc9b7933a99a191378547d442324.tar.gz |
removed old behavior for the histogram function.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 15 |
1 files changed, 2 insertions, 13 deletions
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 |