summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-06-05 13:48:27 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-06-05 13:48:27 (GMT)
commitf2c25c5cb0225c8c4ffeff34ae72f4cd2b6fe102 (patch)
treef5c67315663aabcdccb64d4e8c6f92ff5568f777 /Lib/unittest/case.py
parent5fe21ff91a0f3404680a7ff8c3c78b085b7ce92a (diff)
downloadcpython-f2c25c5cb0225c8c4ffeff34ae72f4cd2b6fe102.zip
cpython-f2c25c5cb0225c8c4ffeff34ae72f4cd2b6fe102.tar.gz
cpython-f2c25c5cb0225c8c4ffeff34ae72f4cd2b6fe102.tar.bz2
Fix unittest tests after previous commit.
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 08e8c1e..48e2460 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -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)