[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

Gregory P. Smith report at bugs.python.org
Sat Apr 19 04:04:23 CEST 2014


Gregory P. Smith added the comment:

that seems reasonable.  unittest's assertSequenceEqual is using this to attempt to display a useful error message as to what the delta was; it should try harder to avoid difflib corner cases.

At the very least, unittest should recover from a difflib failure and report a test failure without the possibly nicer message.

----------
title: Difflib.compare() crashes on mostly different sequences -> unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21253>
_______________________________________


More information about the Python-bugs-list mailing list