Merge pull request #2007 from pijyoi/skip_missing_scipy

skip tests using scipy if not installed
This commit is contained in:
Ogi Moore 2021-10-07 21:22:24 -07:00 committed by GitHub
commit fb809e5260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ def test_interpolateArray_order1():
def check_interpolateArray(order):
pytest.importorskip("scipy")
def interpolateArray(data, x):
result = pg.interpolateArray(data, x, order=order)
assert result.shape == x.shape[:-1] + data.shape[x.shape[-1]:]