diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-23 14:55:29 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-23 14:55:29 (GMT) |
commit | 80d07f825108761af9fe2ac79c1ef50289c07c08 (patch) | |
tree | b9c87aef9fe754677fd5eb6220419647343e7400 /Lib | |
parent | 1cf5aa910649bd831cad8f87963277025deb0695 (diff) | |
download | cpython-80d07f825108761af9fe2ac79c1ef50289c07c08.zip cpython-80d07f825108761af9fe2ac79c1ef50289c07c08.tar.gz cpython-80d07f825108761af9fe2ac79c1ef50289c07c08.tar.bz2 |
inherit maxchar of field value where needed (closes #14648)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 813d59f..7b0397e 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -1056,6 +1056,8 @@ class UnicodeTest(string_tests.CommonTest, self.assertEqual('%f' % INF, 'inf') self.assertEqual('%F' % INF, 'INF') + self.assertEqual(format("\u0410\u0411\u0412", "s"), "АБВ") + def test_startswith_endswith_errors(self): for meth in ('foo'.startswith, 'foo'.endswith): with self.assertRaises(TypeError) as cm: |