Michael Layzell added the comment: Martin's solution seemed like the least work, so that's what I ended up using. I also switched over to assertRegex, and I agree that it produces better error messages.
I added a comment to explain the use of the ugly multiline regex, and removed some of its unnecessary parts. ---------- Added file: http://bugs.python.org/file41169/cpython25677.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com