mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Make assertMultiLineEqual the default for comparing unicode strings.
This commit is contained in:
parent
0c4783a33c
commit
fe6349c965
3 changed files with 14 additions and 6 deletions
|
@ -2810,8 +2810,9 @@ test case
|
|||
self.assertMultiLineEqual(type_changer(sample_text),
|
||||
type_changer(revised_sample_text))
|
||||
except self.failureException, e:
|
||||
# no fair testing ourself with ourself, use assertEqual..
|
||||
self.assertEqual(sample_text_error, str(e).encode('utf8'))
|
||||
# assertMultiLineEqual is hooked up as the default for
|
||||
# unicode strings - so we can't use it for this check
|
||||
self.assertTrue(sample_text_error == str(e).encode('utf8'))
|
||||
|
||||
def testAssertIsNone(self):
|
||||
self.assertIsNone(None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue