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 TypeError when first item in MarkInfo list of marks is a MarkDecorator instance #3575

Closed
wants to merge 1 commit into from

Conversation

nicoddemus
Copy link
Member

Not sure I like the fix, but the current state of things of working on Python 3 and failing on Python 2 is not optimal either. 🤔

Fix #3501

combined = attr.ib(repr=False)

@combined.default
def _combined_default(self):
Copy link
Member

Choose a reason for hiding this comment

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

this is ABSOLUTELY not the place not fix - in addition the python version check makes absolutely no sense

_marks should get a validator that requires its a list of mark objects

Copy link
Member Author

Choose a reason for hiding this comment

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

No need to shout. ;)

@nicoddemus nicoddemus closed this Jun 12, 2018
@nicoddemus nicoddemus deleted the mark-decorator-3501 branch June 12, 2018 12:23
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 92.72% when pulling b484c14 on nicoddemus:mark-decorator-3501 into 1b5322d on pytest-dev:master.

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.

Override marks on items?
3 participants