summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorJonathan Helmus <jjhelmus@gmail.com>2013-09-16 10:32:25 -0600
committerJonathan Helmus <jjhelmus@gmail.com>2013-09-16 10:32:25 -0600
commit9dd212cee1c9ccab6013d52e776bcf6ef712a5e0 (patch)
treea4a4414bd29efdf3d023fbba9a5d5690063fd579 /numpy/lib/tests/test_function_base.py
parent9aed31a8ba1607241947bfe886821e9eb09f6ebb (diff)
downloadnumpy-9dd212cee1c9ccab6013d52e776bcf6ef712a5e0.tar.gz
MAINT: changed 'closest' interpolation to 'nearest'
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 6923f0004..a69c82e18 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1477,11 +1477,11 @@ class TestScoreatpercentile(TestCase):
assert_equal(np.percentile(range(10), 51,
interpolation='midpoint'), 4.5)
- def test_closest(self):
+ def test_nearest(self):
assert_equal(np.percentile(range(10), 51,
- interpolation='closest'), 5)
+ interpolation='nearest'), 5)
assert_equal(np.percentile(range(10), 49,
- interpolation='closest'), 4)
+ interpolation='nearest'), 4)
def test_sequence(self):
x = np.arange(8) * 0.5