Skip to content

Commit b4de1a4

Browse files
committed
Use correct exception
1 parent 817779a commit b4de1a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/plantcv/test_readbayer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def test_readbayer_default_bad_input():
2828

2929
def test_readbayer_bad_algorithm(test_data):
3030
"""Test for PlantCV."""
31-
with pytest.raises(ValueError):
31+
with pytest.raises(RuntimeError):
3232
_, _, _ = readbayer(filename=test_data.bayer_img, bayerpattern="GR", alg="bad_algorithm")
3333

3434

3535
def test_readbayer_bad_bayerpattern(test_data):
3636
"""Test for PlantCV."""
37-
with pytest.raises(ValueError):
37+
with pytest.raises(RuntimeError):
3838
_, _, _ = readbayer(filename=test_data.bayer_img, bayerpattern="bad_bayerpattern", alg="default")

0 commit comments

Comments
 (0)