mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
merge 3.3
This commit is contained in:
commit
48953632df
3 changed files with 13 additions and 2 deletions
|
@ -943,6 +943,8 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
self.assertEqual("{0:.0s}".format("ABC\u0410\u0411\u0412"),
|
||||
'')
|
||||
|
||||
self.assertEqual("{[{}]}".format({"{}": 5}), "5")
|
||||
|
||||
def test_format_map(self):
|
||||
self.assertEqual(''.format_map({}), '')
|
||||
self.assertEqual('a'.format_map({}), 'a')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue