Skip to content

Commit

Permalink
TEST: Set 'slow' on slow tests in test_gridtools.py (#334)
Browse files Browse the repository at this point in the history
Run `nosetests -a '!slow'` to run  tests that do NOT have the attribute `slow`
  • Loading branch information
oyamad authored and mmcky committed Aug 30, 2017
1 parent c79d6ba commit ecbf2b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quantecon/tests/test_gridtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Tests for gridtools.py file
"""

from nose.plugins.attrib import attr
from quantecon.gridtools import cartesian, _repeat_1d

def test_cartesian_C_order():
Expand Down Expand Up @@ -48,6 +48,7 @@ def test_cartesian_F_order():

assert(correct)

@attr('slow')
def test_performance_C():

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

@attr('slow')
def test_performance_F():

from numpy import linspace, column_stack, repeat, tile
Expand Down

0 comments on commit ecbf2b2

Please sign in to comment.