From 120d47e5119fb127d748a9d179494261b93845ea Mon Sep 17 00:00:00 2001 From: Rajat Bishnoi Date: Sat, 10 Oct 2020 09:00:14 +0000 Subject: [PATCH] TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py --- pandas/tests/test_flags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_flags.py b/pandas/tests/test_flags.py index f6e3ae4980afb..9294b3fc3319b 100644 --- a/pandas/tests/test_flags.py +++ b/pandas/tests/test_flags.py @@ -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