Skip to content

Commit 5d4229c

Browse files
krajatclRajat Bishnoi
authored and
Kevin D Smith
committed
TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py (pandas-dev#37026)
Co-authored-by: Rajat Bishnoi <[email protected]>
1 parent fd04fa5 commit 5d4229c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_flags.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def test_getitem(self):
4141
flags["allows_duplicate_labels"] = False
4242
assert flags["allows_duplicate_labels"] is False
4343

44-
with pytest.raises(KeyError):
44+
with pytest.raises(KeyError, match="a"):
4545
flags["a"]
4646

47-
with pytest.raises(ValueError):
47+
with pytest.raises(ValueError, match="a"):
4848
flags["a"] = 10

0 commit comments

Comments
 (0)