aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bot/exts/test_cogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bot/exts/test_cogs.py')
-rw-r--r--tests/bot/exts/test_cogs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bot/exts/test_cogs.py b/tests/bot/exts/test_cogs.py
index 99bc87120..0c117b3e6 100644
--- a/tests/bot/exts/test_cogs.py
+++ b/tests/bot/exts/test_cogs.py
@@ -62,8 +62,7 @@ class CommandNameTests(unittest.TestCase):
"""Yield all commands for all cogs in all extensions."""
for module in self.walk_modules():
for cog in self.walk_cogs(module):
- for cmd in self.walk_commands(cog):
- yield cmd
+ yield from self.walk_commands(cog)
def test_names_dont_shadow(self):
"""Names and aliases of commands should be unique."""