mirror of https://github.com/python/cpython
use unicode literals
This commit is contained in:
parent
7dbe3e31c1
commit
eabdeba25e
|
@ -1282,9 +1282,9 @@ class UnicodeTest(
|
|||
self.assertRaises(IndexError, u"{:}".format)
|
||||
self.assertRaises(IndexError, u"{:s}".format)
|
||||
self.assertRaises(IndexError, u"{}".format)
|
||||
big = "23098475029384702983476098230754973209482573"
|
||||
self.assertRaises(ValueError, ("{" + big + "}").format)
|
||||
self.assertRaises(ValueError, ("{[" + big + "]}").format, [0])
|
||||
big = u"23098475029384702983476098230754973209482573"
|
||||
self.assertRaises(ValueError, (u"{" + big + u"}").format)
|
||||
self.assertRaises(ValueError, (u"{[" + big + u"]}").format, [0])
|
||||
|
||||
# issue 6089
|
||||
self.assertRaises(ValueError, u"{0[0]x}".format, [None])
|
||||
|
|
Loading…
Reference in New Issue