diff options
Diffstat (limited to 'Lib/test/test_str.py')
-rw-r--r-- | Lib/test/test_str.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py index 51d2680adc..5341af218d 100644 --- a/Lib/test/test_str.py +++ b/Lib/test/test_str.py @@ -351,6 +351,10 @@ class StrTest( 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) |