Skip to content

Commit 7fba9dc

Browse files
committed
Update tests for new output of unittest.TestCase.assertDictEquals
1 parent d23acf8 commit 7fba9dc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Lib/test/test_unittest/test_assertions.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,10 @@ def testAssertNotIn(self):
267267

268268
def testAssertDictEqual(self):
269269
self.assertMessages('assertDictEqual', ({}, {'key': 'value'}),
270-
[r"\+ \{'key': 'value'\}$", "^oops$",
271-
r"\+ \{'key': 'value'\}$",
272-
r"\+ \{'key': 'value'\} : oops$"])
270+
[r"^\{\} != \{'key': 'value'\}\n\{\n Keys in the second dict but not the first:\n \+ 'key': 'value',\n\}$",
271+
r"^oops$",
272+
r"^\{\} != \{'key': 'value'\}\n\{\n Keys in the second dict but not the first:\n \+ 'key': 'value',\n\}$",
273+
r"^\{\} != \{'key': 'value'\}\n\{\n Keys in the second dict but not the first:\n \+ 'key': 'value',\n\} : oops$"])
273274

274275
def testAssertMultiLineEqual(self):
275276
self.assertMessages('assertMultiLineEqual', ("", "foo"),

0 commit comments

Comments
 (0)