mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merged revisions 72848 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72848 | eric.smith | 2009-05-23 09:56:13 -0400 (Sat, 23 May 2009) | 1 line Issue 6089: str.format raises SystemError. ........
This commit is contained in:
parent
db1c399fe0
commit
41669caebc
3 changed files with 10 additions and 2 deletions
|
@ -688,6 +688,10 @@ class UnicodeTest(
|
|||
self.assertRaises(IndexError, "{:s}".format)
|
||||
self.assertRaises(IndexError, "{}".format)
|
||||
|
||||
# issue 6089
|
||||
self.assertRaises(ValueError, "{0[0]x}".format, [None])
|
||||
self.assertRaises(ValueError, "{0[0](10)}".format, [None])
|
||||
|
||||
# can't have a replacement on the field name portion
|
||||
self.assertRaises(TypeError, '{0[{1}]}'.format, 'abcdefg', 4)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue