-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix addmarker - extract mark from markdecorator #3577
Conversation
282b5b8
to
37793d4
Compare
src/_pytest/mark/structures.py
Outdated
def validate_marks(self, attribute, value): | ||
for item in value: | ||
if not isinstance(item, Mark): | ||
raise ValueError(item) |
There was a problem hiding this comment.
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)))
src/_pytest/nodes.py
Outdated
@@ -173,10 +173,12 @@ def listchain(self): | |||
chain.reverse() | |||
return chain | |||
|
|||
def add_marker(self, marker): | |||
def add_marker(self, marker, append=True): |
There was a problem hiding this comment.
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
0d589ab
to
b0ec442
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
TestMockDecoration.test_wrapped_getfuncargnames_patching looks fundamentally broken |
fixes #3555