Commit 5018197c authored by Akim Demaille's avatar Akim Demaille
Browse files

tests: flush the buffers

This should help getting better feedback _while_ running the test
suite.

* tests/bin/test.py (PASS, FAIL): here.
parent e216f908
......@@ -96,6 +96,7 @@ def FAIL(*msg, **kwargs):
loc = kwargs['loc'] if 'loc' in kwargs and kwargs['loc'] is not None else here()
print(loc + ": fail:", *msg)
print()
sys.stdout.flush()
def PASS(*msg, **kwargs):
global count, npass
......@@ -105,6 +106,7 @@ def PASS(*msg, **kwargs):
loc = kwargs['loc'] if 'loc' in kwargs and kwargs['loc'] is not None else here()
print(loc + ": pass:", *msg)
print()
sys.stdout.flush()
def SKIP(*msg):
PASS('SKIP', *msg)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment