Home | History | Annotate | Download | only in test

Lines Matching refs:formatstr

13 def testformat(formatstr, args, output=None, limit=None, overflowok=False):
17 (repr(formatstr), repr(args), repr(output)),
19 print "%s %% %s works? ..." % (repr(formatstr), repr(args)),
21 result = formatstr % args
32 (formatstr, args, result, output))
43 (repr(formatstr), repr(args), repr(result), repr(output))
49 def testboth(formatstr, *args, **kwargs):
50 testformat(formatstr, *args, **kwargs)
52 testformat(unicode(formatstr), *args, **kwargs)
251 def test_exc(formatstr, args, exception, excmsg):
253 testformat(formatstr, args)