Skip to content

Commit db65e32

Browse files
add match to pytest raises
1 parent ad2e59a commit db65e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/dtypes/test_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,10 @@ def test_pandas_dtype_string_dtypes(string_storage):
838838

839839

840840
def test_pandas_dtype_string_dtype_alias_with_storage():
841-
with pytest.raises(TypeError):
841+
with pytest.raises(TypeError, match="not understood"):
842842
pandas_dtype("str[python]")
843843

844-
with pytest.raises(TypeError):
844+
with pytest.raises(TypeError, match="not understood"):
845845
pandas_dtype("str[pyarrow]")
846846

847847
result = pandas_dtype("string[python]")

0 commit comments

Comments
 (0)