-
-
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
Assume not skipped by mark if attribute missing #3075
Assume not skipped by mark if attribute missing #3075
Conversation
The build failures appear to be a combination of PyPI flakiness and unrelated test flakiness. |
the failures seem unrelated, |
@@ -261,7 +261,7 @@ def pytest_runtest_makereport(item, call): | |||
else: | |||
rep.outcome = "passed" | |||
rep.wasxfail = explanation | |||
elif item._skipped_by_mark and rep.skipped and type(rep.longrepr) is tuple: | |||
elif getattr(item, '_skipped_by_mark', False) and rep.skipped and type(rep.longrepr) is tuple: |
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.
Couldn't it be isinstance(rep.longrepr, tuple)
?
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.
It could be, but I think it is fine to only expect only tuple
types (as opposed to also expect tuple subclasses).
Thanks @elliterate and sorry for the delay! |
Fixes #3074.