2 ms·
> Er… you don't, that's what the second snippet shows: if you have a custom assertion message, it just prints the message alongside everything else… Is that a
by jgalt212 9y ago
> Er… you don't, that's what the second snippet shows: if you have a custom assertion message, it just prints the message alongside everything else…
Is that a new addition to pytest? I do seem to remember the user defined message stomping over whatever pytest would normally spit out.
- masklinn 9y agoThat seems to have been fixed in version 2.6.2 released in September 2014[0]: > Implement issue549: user-provided assertion messages now no longer replace the py.test introspection message but are shown in addition to them. [0] https://docs.pytest.org/en/latest/changelog.html#id228 https://docs.pytest.org/en/latest/changelog.html#id228
- jgalt212 9y agocool, thanks for clearing that up for me.