mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Issue 6089: str.format raises SystemError.
This commit is contained in:
parent
8254d39840
commit
4b94b192ff
3 changed files with 11 additions and 2 deletions
|
@ -1100,6 +1100,10 @@ class UnicodeTest(
|
|||
self.assertRaises(IndexError, u"{:s}".format)
|
||||
self.assertRaises(IndexError, u"{}".format)
|
||||
|
||||
# issue 6089
|
||||
self.assertRaises(ValueError, u"{0[0]x}".format, [None])
|
||||
self.assertRaises(ValueError, u"{0[0](10)}".format, [None])
|
||||
|
||||
# can't have a replacement on the field name portion
|
||||
self.assertRaises(TypeError, u'{0[{1}]}'.format, u'abcdefg', 4)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue