diff options
author | seberg <sebastian@sipsolutions.net> | 2014-02-26 15:45:42 +0100 |
---|---|---|
committer | seberg <sebastian@sipsolutions.net> | 2014-02-26 15:45:42 +0100 |
commit | 5100498ea6bdb4522b48550aad8841687586095a (patch) | |
tree | 0b2219b6eb9cf689895123ae35691b7652f98a44 /numpy/lib/tests/test_function_base.py | |
parent | 8ce3640cb85abfc9a0c7fb55f30957e5224718a4 (diff) | |
parent | 1c2ac8fd02cf6db60b2e15ec994b8febe025424a (diff) | |
download | numpy-5100498ea6bdb4522b48550aad8841687586095a.tar.gz |
Merge pull request #4302 from charris/fix-gh-605
BUG: Make interp return NaN at NaN interpolation points.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index fee838ecf..953292550 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1490,6 +1490,8 @@ class TestInterp(TestCase): assert_almost_equal(np.interp(x0, x, y), x0) x0 = np.float64(.3) assert_almost_equal(np.interp(x0, x, y), x0) + x0 = np.nan + assert_almost_equal(np.interp(x0, x, y), x0) def test_zero_dimensional_interpolation_point(self): x = np.linspace(0, 1, 5) |