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):
...
E assert <test.AA instance at 0x7fb9399169e0>.t is True
And if run with ---assert=reinterp:
...
E assert False is True
E + where False = <test.AA instance at 0x7f24de4740e0>.t
Thanks
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
Provides the following output (using with ---assert=rewrite):
And if run with ---assert=reinterp:
Thanks