Chris Withers <ch...@withers.org> added the comment:

This is a tricky one as there's plenty of prior art, with pytest's assertion 
rewriting [1], testfixtures compare [2] and the stuff that unittest already 
does [3].

I don't think any solution should rely on a TestCase being used as pytest, 
which is the most prevalent testing framework now, doesn't want to rely on them 
(they do come with a lot of baggage ;-)).

Can we make use of the pretty diffing stuff in unittest without explicitly 
making it a requirement?

[1] https://docs.pytest.org/en/latest/assert.html

[2] https://testfixtures.readthedocs.io/en/latest/comparing.html#dicts

[3] 
https://docs.python.org/3.8/library/unittest.html#unittest.TestCase.assertDictEqual

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28054>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to