summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-02-08 23:10:39 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-02-08 23:10:39 (GMT)
commit0283495c305befb0926312c75e2d2ffaec428ab8 (patch)
tree857964c1c0bc76aabb4a025bdad9cfc83ba8feb6 /Lib/unittest/case.py
parent490082302779decbaf66a80480ae45fba6ae0e20 (diff)
downloadcpython-0283495c305befb0926312c75e2d2ffaec428ab8.zip
cpython-0283495c305befb0926312c75e2d2ffaec428ab8.tar.gz
cpython-0283495c305befb0926312c75e2d2ffaec428ab8.tar.bz2
Merged revisions 78116 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78116 | michael.foord | 2010-02-08 22:41:16 +0000 (Mon, 08 Feb 2010) | 1 line Make assertMultiLineEqual the default for comparing unicode strings. ........
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index a4e45aa..cf180d7 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -189,6 +189,7 @@ class TestCase(object):
self.addTypeEqualityFunc(tuple, self.assertTupleEqual)
self.addTypeEqualityFunc(set, self.assertSetEqual)
self.addTypeEqualityFunc(frozenset, self.assertSetEqual)
+ self.addTypeEqualityFunc(str, self.assertMultiLineEqual)
def addTypeEqualityFunc(self, typeobj, function):
"""Add a type specific assertEqual style function to compare a type.