mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
merge 3.3 (#19729)
This commit is contained in:
commit
d75803c1fc
2 changed files with 4 additions and 0 deletions
|
@ -973,6 +973,8 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
self.assertRaises(ValueError, "{a{b}".format, 42)
|
||||
self.assertRaises(ValueError, "{[}".format, 42)
|
||||
|
||||
self.assertEqual("0x{:0{:d}X}".format(0x0,16), "0x0000000000000000")
|
||||
|
||||
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