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 <rep...@bugs.python.org> <http://bugs.python.org/issue21253> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com