summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2016-05-16 09:39:10 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2016-05-16 09:39:10 +0200
commit18b21329dbb32a7f34377a8c590eb1745132c635 (patch)
tree20f4a175c35c9719f584716e843266bf372f0902 /numpy/lib
parent294a7b894230845ea325b7dd5d45a1aff93121c8 (diff)
downloadnumpy-18b21329dbb32a7f34377a8c590eb1745132c635.tar.gz
TST: mark two tests in numpy.lib as slow, speeds up numpy.lib tests by 5x
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_format.py1
-rw-r--r--numpy/lib/tests/test_io.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index ee845fc95..892b32a9c 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -635,6 +635,7 @@ def test_version_2_0():
assert_raises(ValueError, format.write_array, f, d, (1, 0))
+@dec.slow
def test_version_2_0_memmap():
# requires more than 2 byte for header
dt = [(("%d" % i) * 100, float) for i in range(500)]
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 3b0b83712..de73d57f7 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -19,9 +19,8 @@ from numpy.ma.testutils import assert_equal
from numpy.testing import (
TestCase, run_module_suite, assert_warns, assert_,
assert_raises_regex, assert_raises, assert_allclose,
- assert_array_equal,temppath
+ assert_array_equal, temppath, dec
)
-from numpy.testing.utils import tempdir
class TextIO(BytesIO):
@@ -158,6 +157,7 @@ class RoundtripTest(object):
a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')])
self.check_roundtrips(a)
+ @dec.slow
def test_format_2_0(self):
dt = [(("%d" % i) * 100, float) for i in range(500)]
a = np.ones(1000, dtype=dt)