test_format.py | 251 def test_exc(formatstr, args, exception, excmsg): function in function:FormatTest.test_format 268 test_exc('abc %a', 1, ValueError, 271 test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError, 274 test_exc('%d', '1', TypeError, "%d format: a number is required, not str") 275 test_exc('%g', '1', TypeError, "float argument required, not str") 276 test_exc('no format', '1', TypeError, 278 test_exc('no format', u'1', TypeError, 280 test_exc(u'no format', '1', TypeError, 282 test_exc(u'no format', u'1', TypeError, 290 test_exc('%o', Foobar(), TypeError [all...] |