From 3a3b12884684fc70d19ec70bc0e0cc283a96207f Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Wed, 25 Aug 2021 11:53:37 -0400 Subject: [PATCH] FutureWarning --- distributed/diagnostics/tests/test_scheduler_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed/diagnostics/tests/test_scheduler_plugin.py b/distributed/diagnostics/tests/test_scheduler_plugin.py index c51d684ae0..09a7c39fbb 100644 --- a/distributed/diagnostics/tests/test_scheduler_plugin.py +++ b/distributed/diagnostics/tests/test_scheduler_plugin.py @@ -117,7 +117,7 @@ async def start(self, scheduler): s.add_plugin(plugin) s.add_plugin(plugin, name="another") with pytest.raises(ValueError) as excinfo: - with pytest.warns(UserWarning, match="Removing scheduler plugins by value"): + with pytest.warns(FutureWarning, match="Removing scheduler plugins by value"): s.remove_plugin(plugin) msg = str(excinfo.value)