Strengthen test_unicode with explicit type checking for assertEqual tests.

This commit is contained in:
Florent Xicluna 2010-09-13 08:53:00 +00:00
parent 60d512c3b0
commit c0c0b14671
3 changed files with 25 additions and 9 deletions

View file

@ -254,7 +254,7 @@ class CommonTest(unittest.TestCase):
r2 = j in i
self.assertEqual(r1, r2)
if loc != -1:
self.assertEqual(i[loc:loc+len(j)], j)
self.assertEqual(i[loc:loc+len(j)], self.fixtype(j))
# issue 7458
self.checkequal(-1, 'ab', 'rfind', 'xxx', sys.maxsize + 1, 0)