-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Hi there,
First of all, thank you for the amazing work you've done on pytest! It is really cool!
When asserting a boolean attribute of an object, the actual value isn't printed in the output as it would be with other types (int, str, etc). I'm using latest pytest 2.9.1
def test_a():
class AA():
pass
a = AA()
a.t = False
assert a.t is True
Provides the following output (using with ---assert=rewrite):
...
assert a.t is True
E assert <test.AA instance at 0x7fb9399169e0>.t is True
And if run with ---assert=reinterp:
...
assert a.t is True
E assert False is True
E + where False = <test.AA instance at 0x7f24de4740e0>.t
Thanks
Metadata
Metadata
Assignees
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed