diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-09-28 16:54:04 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-09-28 17:15:51 +0200 |
commit | 19d344bfd4c0b348e6c978a6c90a1da4372d8f82 (patch) | |
tree | b70c6e9e9d8fe9b6740c422b88f820f8ee04ec87 /numpy/lib/tests/test_function_base.py | |
parent | 58d79003da26c9fb9919a82b64295338360106ba (diff) | |
download | numpy-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.py | 2 |
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) |