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

Fixes #1503 no longer collapse false explanations #1654

Merged

Conversation

tomviner
Copy link
Contributor

Always include full assertion explanation. The previous behaviour was hiding sub-expressions that happened to be False, assuming this was redundant information. Fixes #1503.

At first glance it may seem that the additional explanation is redundant, closer inspection demonstrates value in this detail. For an example see #1503 where the reporter covers their use case.

@coveralls
Copy link

coveralls commented Jun 24, 2016

Coverage Status

Coverage decreased (-0.01%) to 92.23% when pulling e30ec79 on tomviner:issue1503/remove_collapse_false into 6359e75 on pytest-dev:master.

@nicoddemus
Copy link
Member

@tomviner could you rebase this? It's conflicting again 😅

@tomviner tomviner force-pushed the issue1503/remove_collapse_false branch from e30ec79 to 77689eb Compare June 24, 2016 13:35
@tomviner
Copy link
Contributor Author

@nicoddemus rebased!

@coveralls
Copy link

coveralls commented Jun 24, 2016

Coverage Status

Coverage decreased (-0.01%) to 92.233% when pulling 77689eb on tomviner:issue1503/remove_collapse_false into 3d263c6 on pytest-dev:master.

@nicoddemus nicoddemus merged commit 0c63762 into pytest-dev:master Jun 24, 2016
@nicoddemus
Copy link
Member

Thanks!

@sallner
Copy link
Member

sallner commented Jul 1, 2016

This also solved #1592, which can be closed now.

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.

missing evaluated value in report when asserting a boolean attribute (using --assert=rewrite)
4 participants