Skip to content

Commit

Permalink
If fetch_california_housing fails, skip the test on Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
rth committed Apr 24, 2018
1 parent f782769 commit 0569194
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pykrige/tests/test_regression_krige.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ def test_regression_krige():
@pytest.mark.skipif(not SKLEARN_INSTALLED,
reason="requires scikit-learn")
def test_krige_housing():
housing = fetch_california_housing()
try:
housing = fetch_california_housing()
except PermissionError:
# This can raise permission error on Appveyor
pytest.skip('Failed to load california housing dataset')

# take only first 1000
p = housing['data'][:1000, :-2]
Expand Down

0 comments on commit 0569194

Please # to comment.