mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix unittest tests after previous commit.
This commit is contained in:
parent
5fe21ff91a
commit
f2c25c5cb0
2 changed files with 7 additions and 4 deletions
|
@ -891,7 +891,7 @@ class TestCase(object):
|
|||
'Second argument is not a string'))
|
||||
|
||||
if first != second:
|
||||
standardMsg = '%s != %s' % (safe_repr(d1, True), safe_repr(d2, True))
|
||||
standardMsg = '%s != %s' % (safe_repr(first, True), safe_repr(second, True))
|
||||
diff = '\n' + ''.join(difflib.ndiff(first.splitlines(True),
|
||||
second.splitlines(True)))
|
||||
standardMsg = self._truncateMessage(standardMsg, diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue