Skip to content

Commit

Permalink
TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.…
Browse files Browse the repository at this point in the history
…py (#37026)

Co-authored-by: Rajat Bishnoi <rajat.b@greyorange.com>
  • Loading branch information
krajatcl and Rajat Bishnoi authored Oct 10, 2020
1 parent 05a4eef commit 126f3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/test_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_getitem(self):
flags["allows_duplicate_labels"] = False
assert flags["allows_duplicate_labels"] is False

with pytest.raises(KeyError):
with pytest.raises(KeyError, match="a"):
flags["a"]

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

0 comments on commit 126f3cc

Please sign in to comment.