[Python-ideas] unittest: assertEqual(a, b, msg): Show diff AND msg

Thomas Güttler guettliml at thomas-guettler.de
Mon Apr 25 03:47:25 EDT 2016


Up to now assertEqual(a, b, msg) outputs only the msg, not the diff.

I know that setting longMessage to True shows the diff and the msg[1]

I think the sane default is to show the diff and the message for assertEqual().

What do you think?

Regards,
   Thomas Güttler




[1] longMessage: https://docs.python.org/3/library/unittest.html#unittest.TestCase.longMessage


-- 
Thomas Guettler http://www.thomas-guettler.de/


More information about the Python-ideas mailing list