-
-
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
Incorrectly dropping brackets on display of assertions #925
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: bug
problem that needs to be addressed
Milestone
Comments
While looking at this in IRC, I also found a case where it's not wrong, but pytest adds/changes brackets:
|
nicoddemus
added
type: bug
problem that needs to be addressed
topic: reporting
related to terminal output and user-facing messages and errors
labels
Aug 7, 2015
What would be a suspected output for the case. |
I started to implement a solution and it works for the first given case, but to make it really general it is more work. |
RedBeardCode
added a commit
to RedBeardCode/pytest
that referenced
this issue
Jun 25, 2016
RedBeardCode
added a commit
to RedBeardCode/pytest
that referenced
this issue
Jun 25, 2016
This was referenced Aug 19, 2016
This was referenced Nov 11, 2017
Merged
This was referenced Nov 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: bug
problem that needs to be addressed
If I have the following test:
then this will correctly fail, but will display as:
This is wrong. The brackets are required because "False == False == False" evaluates to True. In Python this is the same as "(False == False) and (False == False)" due to the rules about chaining operators.
The text was updated successfully, but these errors were encountered: