aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_cogs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_cogs.py b/tests/bot/cogs/test_cogs.py
index 3a9f07db6..9d1d4ebea 100644
--- a/tests/bot/cogs/test_cogs.py
+++ b/tests/bot/cogs/test_cogs.py
@@ -21,7 +21,8 @@ class CommandNameTests(unittest.TestCase):
if command.parent is None:
yield command
if isinstance(command, commands.GroupMixin):
- yield from command.walk_commands()
+ # Annoyingly it returns duplicates for each alias so use a set to fix that
+ yield from set(command.walk_commands())
@staticmethod
def walk_modules() -> t.Iterator[ModuleType]: