Skip to content

Commit 34c70ee

Browse files
authored
Change exception type in test_lookup_option_does_not_hide_other_errors
1 parent da5f725 commit 34c70ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎linearmodels/tests/shared/test_exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ def test_lookup_option():
136136

137137
def test_lookup_option_does_not_hide_other_errors():
138138
# A dict raises a TypeError for a value that cannot be a key
139-
with pytest.raises(TypeError, match="unhashable"):
139+
with pytest.raises(UnknownOptionError, match="Unknown cov_type"):
140140
lookup_option(TABLE, ["robust"], "cov_type") # type: ignore[arg-type]

0 commit comments

Comments
 (0)