summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-09-28 16:54:04 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-09-28 17:15:51 +0200
commit19d344bfd4c0b348e6c978a6c90a1da4372d8f82 (patch)
treeb70c6e9e9d8fe9b6740c422b88f820f8ee04ec87 /numpy/lib/tests/test_function_base.py
parent58d79003da26c9fb9919a82b64295338360106ba (diff)
downloadnumpy-19d344bfd4c0b348e6c978a6c90a1da4372d8f82.tar.gz
TST: improve test speed
move slow test_memmap_roundtrip to slow tests decrease excessively large array size used in np.sin(x) compuation TestInterp.test_if_len_x_is_small, the code has no special path for this large size differences.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index dd0b6e0ee..ce9d45d5b 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1430,7 +1430,7 @@ class TestInterp(TestCase):
assert_almost_equal(np.interp(x0, x, y), .3)
def test_if_len_x_is_small(self):
- xp = np.arange(0, 1000, 0.0001)
+ xp = np.arange(0, 10, 0.0001)
fp = np.sin(xp)
assert_almost_equal(np.interp(np.pi, xp, fp), 0.0)