Searched refs:test_exc (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_format.py | 73 def test_exc(formatstr, args, exception, excmsg): function 92 test_exc(formatstr, args, exception, excmsg) 93 test_exc(formatstr.encode('ascii'), args, exception, excmsg) 294 test_exc('abc %b', 1, ValueError, 298 test_exc('%g', '1', TypeError, "must be real number, not str") 299 test_exc('no format', '1', TypeError, 301 test_exc('%c', -1, OverflowError, "%c arg not in range(0x110000)") 302 test_exc('%c', sys.maxunicode+1, OverflowError, 305 test_exc('%c', 3.14, TypeError, "%c requires int or char") 306 test_exc('%c', 'ab', TypeError, "%c requires int or char") [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_format.py | 252 def test_exc(formatstr, args, exception, excmsg): function 269 test_exc('abc %a', 1, ValueError, 272 test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError, 275 test_exc('%d', '1', TypeError, "%d format: a number is required, not str") 276 test_exc('%g', '1', TypeError, "float argument required, not str") 277 test_exc('no format', '1', TypeError, 279 test_exc('no format', u'1', TypeError, 281 test_exc(u'no format', '1', TypeError, 283 test_exc(u'no format', u'1', TypeError, 291 test_exc('%o', Foobar(), TypeError,
|