Skip to content

Commit

Permalink
Skipped hanging tests for Python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Feb 6, 2019
1 parent 0c44efc commit ba3b319
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_precip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit ba3b319

Please sign in to comment.