summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-23 14:55:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-23 14:55:29 (GMT)
commit80d07f825108761af9fe2ac79c1ef50289c07c08 (patch)
treeb9c87aef9fe754677fd5eb6220419647343e7400 /Lib/test/test_unicode.py
parent1cf5aa910649bd831cad8f87963277025deb0695 (diff)
downloadcpython-80d07f825108761af9fe2ac79c1ef50289c07c08.zip
cpython-80d07f825108761af9fe2ac79c1ef50289c07c08.tar.gz
cpython-80d07f825108761af9fe2ac79c1ef50289c07c08.tar.bz2
inherit maxchar of field value where needed (closes #14648)
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py2
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: