mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Strengthen test_unicode with explicit type checking for assertEqual tests.
This commit is contained in:
parent
60d512c3b0
commit
c0c0b14671
3 changed files with 25 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue