Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix addmarker - extract mark from markdecorator #3577

Merged
merged 5 commits into from
Jun 13, 2018

Conversation

RonnyPfannschmidt
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt commented Jun 12, 2018

fixes #3555

@RonnyPfannschmidt RonnyPfannschmidt changed the title [WIP] fix addmarker - extract mark from markdecorator fix addmarker - extract mark from markdecorator Jun 12, 2018
def validate_marks(self, attribute, value):
for item in value:
if not isinstance(item, Mark):
raise ValueError(item)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a more descriptive message:

raise ValueError('MarkInfo expects Mark instances, got {!r} (!{r})'.format(item, type(item)))

@@ -173,10 +173,12 @@ def listchain(self):
chain.reverse()
return chain

def add_marker(self, marker):
def add_marker(self, marker, append=True):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whops, the docstring and parames didnt get undone

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@RonnyPfannschmidt
Copy link
Member Author

TestMockDecoration.test_wrapped_getfuncargnames_patching looks fundamentally broken

@coveralls
Copy link

coveralls commented Jun 12, 2018

Coverage Status

Coverage increased (+0.03%) to 92.708% when pulling 88ae21f on RonnyPfannschmidt:addmarker-fix into 1b5322d on pytest-dev:master.

@nicoddemus nicoddemus merged commit 4d0297b into pytest-dev:master Jun 13, 2018
@RonnyPfannschmidt RonnyPfannschmidt deleted the addmarker-fix branch August 2, 2018 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal Error when rerun occurs on tests that are members of a class using mark.
3 participants