mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-68968: Correcting message display issue with assertEqual (#103937)
This commit is contained in:
parent
7d35c3121a
commit
46361bb843
4 changed files with 87 additions and 11 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue