mardi 9 octobre 2018

Python unittest module diff consider `tzinfo=

I have a problem using assertListEqual() in Python's unittest module.

When I do self.assertListEqual(expected, result) it compares items correctly. But when there is a little difference, then I get a diff. And in that diff, besides items which definitely differ, I get many lines like:

enter image description here

The question is: How could I get rid of that, to see only elements, which realy differ?

Aucun commentaire:

Enregistrer un commentaire