mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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. ........
This commit is contained in:
parent
4900823027
commit
0283495c30
3 changed files with 21 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue