summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorempeeu <empeeu@users.noreply.github.com>2015-06-22 19:51:28 -0400
committerempeeu <empeeu@users.noreply.github.com>2015-06-22 19:51:28 -0400
commitf5d3d96b3b48ba8b8d15a09334491f3f19804693 (patch)
treed9c768227a5fc32cd66eb52524e19707028445fd /numpy/lib/tests/test_function_base.py
parent3e82d6db99bc9e32a6f6bcb63cbfccbaa1168a74 (diff)
downloadnumpy-f5d3d96b3b48ba8b8d15a09334491f3f19804693.tar.gz
Updating unit tests for removed warning.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 397505bd0..1684406ab 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -2335,7 +2335,7 @@ class TestMedian(TestCase):
with warnings.catch_warnings(record=True) as w:
warnings.filterwarnings('always', '', RuntimeWarning)
assert_equal(np.median(a, 0), b)
- assert_equal(len(w), 2)
+ assert_equal(len(w), 1)
#axis1
b = np.median(np.arange(24, dtype=float).reshape(2, 3, 4), 1)
@@ -2343,7 +2343,7 @@ class TestMedian(TestCase):
with warnings.catch_warnings(record=True) as w:
warnings.filterwarnings('always', '', RuntimeWarning)
assert_equal(np.median(a, 1), b)
- assert_equal(len(w), 2)
+ assert_equal(len(w), 1)
#axis02
b = np.median(np.arange(24, dtype=float).reshape(2, 3, 4), (0, 2))
@@ -2351,7 +2351,7 @@ class TestMedian(TestCase):
with warnings.catch_warnings(record=True) as w:
warnings.filterwarnings('always', '', RuntimeWarning)
assert_equal(np.median(a, (0, 2)), b)
- assert_equal(len(w), 2)
+ assert_equal(len(w), 1)
def test_object(self):
o = np.arange(7.);