We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9915add commit 2353a4bCopy full SHA for 2353a4b
tests/test_tools.py
@@ -102,7 +102,7 @@ def test__golden_sect_DataFrame_nans():
102
def test_degrees_to_index_1():
103
"""Test that _degrees_to_index raises an error when something other than
104
'latitude' or 'longitude' is passed."""
105
- with pytest.raises(IndexError): # invalid value for coordinate argument
+ with pytest.raises(ValueError, match="coordinate must be"): # invalid value for coordinate argument
106
tools._degrees_to_index(degrees=22.0, coordinate='width')
107
108
0 commit comments