summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-11-27 01:22:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-11-27 01:22:36 (GMT)
commit0ee22bf7743dc9a6d593c432f787d7bfe70be199 (patch)
tree35c34cd1bd9814b4d0de300cd94c56ee4b33cb7f /Lib/test
parentbb65b5bf1dcc17519e4173ecb64a86228cc5cb58 (diff)
downloadcpython-0ee22bf7743dc9a6d593c432f787d7bfe70be199.zip
cpython-0ee22bf7743dc9a6d593c432f787d7bfe70be199.tar.gz
cpython-0ee22bf7743dc9a6d593c432f787d7bfe70be199.tar.bz2
fix format spec recursive expansion (closes #19729)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_unicode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 9dc3438..502d393 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -955,6 +955,7 @@ class UnicodeTest(string_tests.CommonTest,
'')
self.assertEqual("{[{}]}".format({"{}": 5}), "5")
+ self.assertEqual("0x{:0{:d}X}".format(0x0,16), "0x0000000000000000")
def test_format_map(self):
self.assertEqual(''.format_map({}), '')