Skip to content

Commit 11f590e

Browse files
krajatclRajat Bishnoi
authored andcommitted
TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py (#37026)
Co-authored-by: Rajat Bishnoi <[email protected]>
1 parent 02148b1 commit 11f590e

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)