diff --git a/tests/plugins/platforms/test_discord_gate_isolation.py b/tests/plugins/platforms/test_discord_gate_isolation.py index dbd3aa65cc89a..0844c7372a3c8 100644 --- a/tests/plugins/platforms/test_discord_gate_isolation.py +++ b/tests/plugins/platforms/test_discord_gate_isolation.py @@ -190,7 +190,9 @@ class TestSlashGateIsolation: def test_evaluate_slash_channel_gate_per_adapter(self, monkeypatch): import types - import discord as discord_lib + discord_lib = pytest.importorskip( + "discord", reason="discord.py optional dep not installed" + ) a = _adapter() b = _adapter()