Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybelkov committed Dec 26, 2023
1 parent 89b208a commit bf46aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_interp2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ def test_test_data(num_threads):
def test_no_values(example):
x_points, int_points = example

with pytest.raises(ValueError):
with pytest.raises((ValueError, TypeError)):
Linear2DInterpolator(x_points)(int_points)


def test_bad_values_dtype(example):
x_points, int_points = example

with pytest.raises(ValueError):
with pytest.raises(TypeError):
Linear2DInterpolator(x_points, values=[1, 2, 3])(int_points)
with pytest.raises(ValueError):
with pytest.raises(TypeError):
Linear2DInterpolator(x_points)(int_points, values=[1, 2, 3])
with pytest.raises(ValueError):
Linear2DInterpolator(x_points)(int_points, values=np.ones((3, 3)))
Expand Down

0 comments on commit bf46aa6

Please sign in to comment.