Skip to content

Commit ecbf2b2

Browse files
oyamadmmcky
authored andcommitted
TEST: Set 'slow' on slow tests in test_gridtools.py (#334)
Run `nosetests -a '!slow'` to run tests that do NOT have the attribute `slow`
1 parent c79d6ba commit ecbf2b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quantecon/tests/test_gridtools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Tests for gridtools.py file
66
77
"""
8-
8+
from nose.plugins.attrib import attr
99
from quantecon.gridtools import cartesian, _repeat_1d
1010

1111
def test_cartesian_C_order():
@@ -48,6 +48,7 @@ def test_cartesian_F_order():
4848

4949
assert(correct)
5050

51+
@attr('slow')
5152
def test_performance_C():
5253

5354
from numpy import linspace, column_stack, repeat, tile
@@ -82,6 +83,7 @@ def test_performance_C():
8283
print("Numpy: {}".format(t4-t3))
8384
assert(abs(prod-prod_numpy).max()==0)
8485

86+
@attr('slow')
8587
def test_performance_F():
8688

8789
from numpy import linspace, column_stack, repeat, tile

0 commit comments

Comments
 (0)