Home
last modified time | relevance | path

Searched refs:excmsg (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_format.py73 def test_exc(formatstr, args, exception, excmsg): argument
77 if str(exc) == excmsg:
88 raise TestFailed('did not get expected exception: %s' % excmsg)
90 def test_exc_common(formatstr, args, exception, excmsg): argument
92 test_exc(formatstr, args, exception, excmsg)
93 test_exc(formatstr.encode('ascii'), args, exception, excmsg)
/external/python/cpython2/Lib/test/
Dtest_format.py252 def test_exc(formatstr, args, exception, excmsg): argument
256 if str(exc) == excmsg:
267 raise TestFailed, 'did not get expected exception: %s' % excmsg