(formatstr, args, exception, excmsg)
| 87 | raise TestFailed('did not get expected exception: %s' % excmsg) |
| 88 | |
| 89 | def test_exc_common(formatstr, args, exception, excmsg): |
| 90 | # test str and bytes |
| 91 | test_exc(formatstr, args, exception, excmsg) |
| 92 | if isinstance(args, dict): |
| 93 | args = {k.encode('ascii'): v for k, v in args.items()} |
| 94 | test_exc(formatstr.encode('ascii'), args, exception, excmsg) |
| 95 | |
| 96 | class FormatTest(unittest.TestCase): |
| 97 |
no test coverage detected
searching dependent graphs…