Permalink
Browse files

Don't show snippets for the same step more than once.

Fixes #41
  • Loading branch information...
1 parent 2f7dadd commit 4912dfdd9f884ea703549b48153616a08a2e75c0 @jeamland committed Aug 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 behave/__main__.py
View
@@ -102,7 +102,8 @@ def main():
msg = "\nYou can implement step definitions for undefined steps with "
msg += "these snippets:\n\n"
printed = set()
- for step in runner.undefined:
+ for step in set(runner.undefined):
+ print repr(step)
if step in printed:
continue
printed.add(step)

0 comments on commit 4912dfd

Please sign in to comment.