(fmt, args=None)
| 921 | # ====================================================================== |
| 922 | |
| 923 | def log(fmt, args=None): |
| 924 | if args: |
| 925 | sys.stdout.write(''.join((fmt, '\n')) % args) |
| 926 | else: |
| 927 | sys.stdout.write(''.join((str(fmt), '\n'))) |
| 928 | sys.stdout.flush() |
| 929 | |
| 930 | def test_method(method, testspecs, testfunc): |
| 931 | """Iterate a test function through many context settings.""" |