Skip to content

Commit 6718fbc

Browse files
committed
Update tests to expect ValueError in _degrees_to_index
1 parent 82f9142 commit 6718fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test__golden_sect_DataFrame_nans():
102102
def test_degrees_to_index_1():
103103
"""Test that _degrees_to_index raises an error when something other than
104104
'latitude' or 'longitude' is passed."""
105-
with pytest.raises(IndexError): # invalid value for coordinate argument
105+
with pytest.raises(ValueError, match="coordinate must be"): # invalid value for coordinate argument
106106
tools._degrees_to_index(degrees=22.0, coordinate='width')
107107

108108

0 commit comments

Comments
 (0)