Skip to content

Commit 65c708c

Browse files
authored
TST: fix test_config to use pytest.warns() (#63436)
Signed-off-by: Michał Górny <[email protected]>
1 parent 7242759 commit 65c708c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/config/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_case_insensitive(self, category):
129129

130130
cf.deprecate_option("KanBan", category)
131131
msg = "'kanban' is deprecated, please refrain from using it."
132-
with pytest.raises(category, match=msg):
132+
with tm.assert_produces_warning(category, match=msg):
133133
cf.get_option("kAnBaN")
134134

135135
def test_get_option(self):

0 commit comments

Comments
 (0)