commit | c0c0b146718f3098397c287d2e03028f486606ee | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Mon Sep 13 08:53:00 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Mon Sep 13 08:53:00 2010 +0000 |
tree | 34520bb6253a819665668182ca13a3b72ddb545f | |
parent | 60d512c3b01405f91872a62126d42b4bf1bea911 [diff] [blame] |
Strengthen test_unicode with explicit type checking for assertEqual tests.
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 56cbc35..eb5132e 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py
@@ -254,7 +254,7 @@ 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)