diff --git a/tests/test_precip.py b/tests/test_precip.py index 72f0c3168..01f335822 100644 --- a/tests/test_precip.py +++ b/tests/test_precip.py @@ -4,6 +4,9 @@ import os import pandas as pd +import pytest +import sys + TESTS_HOME = os.path.abspath(os.path.dirname(__file__)) TESTS_DATA = os.path.join(TESTS_HOME, 'testdata') K2C = 273.15 @@ -241,6 +244,7 @@ def test_3d_data_with_nans(self): assert (np.isnan(out1.values[0, -1, -1])) +@pytest.mark.skipif(sys.version_info < (3, 5), reason="too slow to evaluate on python2.7") class TestMaxConsecWetDays(): # TODO: replace by fixture nc_file = os.path.join(TESTS_DATA, 'NRCANdaily', 'nrcan_canada_daily_pr_1990.nc') @@ -279,6 +283,7 @@ def test_3d_data_with_nans(self): # assert (np.isnan(wds.values[0, -1, -1])) +@pytest.mark.skipif(sys.version_info < (3, 5), reason="too slow to evaluate on python2.7") class TestMaxConsecDryDays(): # TODO: replace by fixture nc_file = os.path.join(TESTS_DATA, 'NRCANdaily', 'nrcan_canada_daily_pr_1990.nc')