diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-09-13 08:53:00 +0000 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-09-13 08:53:00 +0000 |
commit | c0c0b146718f3098397c287d2e03028f486606ee (patch) | |
tree | 34520bb6253a819665668182ca13a3b72ddb545f /Lib/test/string_tests.py | |
parent | 60d512c3b01405f91872a62126d42b4bf1bea911 (diff) | |
download | cpython-git-c0c0b146718f3098397c287d2e03028f486606ee.tar.gz |
Strengthen test_unicode with explicit type checking for assertEqual tests.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 56cbc35895..eb5132e147 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -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) |