HomeSort by relevance Sort by last modified time
    Searched refs:test_exc (Results 1 - 7 of 7) sorted by null

  /external/python/cpython3/Lib/test/
test_format.py 258 def test_exc(formatstr, args, exception, excmsg): function in function:FormatTest.test_str_format
274 test_exc('abc %b', 1, ValueError,
276 #test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError,
278 test_exc('%d', '1', TypeError, "%d format: a number is required, not str")
279 test_exc('%x', '1', TypeError, "%x format: an integer is required, not str")
280 test_exc('%x', 3.14, TypeError, "%x format: an integer is required, not float")
281 test_exc('%g', '1', TypeError, "must be real number, not str")
282 test_exc('no format', '1', TypeError,
284 test_exc('%c', -1, OverflowError, "%c arg not in range(0x110000)")
285 test_exc('%c', sys.maxunicode+1, OverflowError
337 def test_exc(formatstr, args, exception, excmsg): function in function:FormatTest.test_bytes_and_bytearray_format
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_format.py 241 def test_exc(formatstr, args, exception, excmsg): function in function:FormatTest.test_format
258 test_exc('abc %a', 1, ValueError,
261 test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError,
264 test_exc('%d', '1', TypeError, "%d format: a number is required, not str")
265 test_exc('%g', '1', TypeError, "float argument required, not str")
266 test_exc('no format', '1', TypeError,
268 test_exc('no format', u'1', TypeError,
270 test_exc(u'no format', '1', TypeError,
272 test_exc(u'no format', u'1', TypeError,
280 test_exc('%o', Foobar(), TypeError,
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
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...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
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...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
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...]
  /external/python/cpython2/Lib/test/
test_format.py 252 def test_exc(formatstr, args, exception, excmsg): function in function:FormatTest.test_format
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
    [all...]

Completed in 57 milliseconds