Skip to content

Commit 060ac98

Browse files
committed
swap order
1 parent 3a3b128 commit 060ac98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distributed/diagnostics/tests/test_scheduler_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ async def start(self, scheduler):
116116
plugin = UnnamedPlugin()
117117
s.add_plugin(plugin)
118118
s.add_plugin(plugin, name="another")
119-
with pytest.raises(ValueError) as excinfo:
120-
with pytest.warns(FutureWarning, match="Removing scheduler plugins by value"):
119+
with pytest.warns(FutureWarning, match="Removing scheduler plugins by value"):
120+
with pytest.raises(ValueError) as excinfo:
121121
s.remove_plugin(plugin)
122122

123123
msg = str(excinfo.value)

0 commit comments

Comments
 (0)