mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
inherit maxchar of field value where needed (closes #14648)
This commit is contained in:
parent
1cf5aa9106
commit
80d07f8251
2 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue