Skip to content

Commit b32c46a

Browse files
committed
updated test_set_option_multiple to catch deprecation warning
1 parent 4cd314a commit b32c46a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/config/test_config.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ def test_set_option_multiple(self):
189189
assert cf.get_option("b.c") == "hullo"
190190
assert cf.get_option("b.b") is None
191191

192-
cf.set_option("a", "2", "b.c", None, "b.b", 10.0)
192+
# Expect the deprecation warning
193+
with tm.assert_produces_warning(
194+
FutureWarning,
195+
match="Setting multiple options using multiple arguments is deprecated",
196+
):
197+
cf.set_option("a", "2", "b.c", None, "b.b", 10.0)
193198

194199
assert cf.get_option("a") == "2"
195200
assert cf.get_option("b.c") is None

0 commit comments

Comments
 (0)