summaryrefslogtreecommitdiff
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
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.
-rw-r--r--numpy/lib/tests/test_format.py1
-rw-r--r--numpy/lib/tests/test_function_base.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 81b672839..91643e559 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -429,6 +429,7 @@ def test_roundtrip():
yield assert_array_equal, arr, arr2
+@dec.slow
def test_memmap_roundtrip():
# XXX: test crashes nose on windows. Fix this
if not (sys.platform == 'win32' or sys.platform == 'cygwin'):
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)