Steps regex can accidentally absorb comments #301

medwards opened this Issue Nov 22, 2012 · 0 comments


None yet
2 participants

medwards commented Nov 22, 2012

If i make a step @step(r'am using (.*)')

and later I write say...

Given I am using an anvil
  And I am using a hammer # informational comment

Then the parameter passed to the decorated function in the second step will be "hammer # informational comment"

I would expect comments not to be present when applying my step regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment