gh-68968: Correcting message display issue with assertEqual (#103937)

This commit is contained in:
Michael Blahay 2023-05-04 18:37:17 -04:00 committed by GitHub
parent 7d35c3121a
commit 46361bb843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 11 deletions

View file

@ -273,9 +273,9 @@ class TestLongMessage(unittest.TestCase):
def testAssertMultiLineEqual(self):
self.assertMessages('assertMultiLineEqual', ("", "foo"),
[r"\+ foo$", "^oops$",
r"\+ foo$",
r"\+ foo : oops$"])
[r"\+ foo\n$", "^oops$",
r"\+ foo\n$",
r"\+ foo\n : oops$"])
def testAssertLess(self):
self.assertMessages('assertLess', (2, 1),