Browse Source

flush test headers in `test_examples.py`

telamonian 5 years ago
parent
commit
1ab7b924f2
1 changed files with 6 additions and 5 deletions
  1. 6 5
      examples/test_examples.py

+ 6 - 5
examples/test_examples.py

@@ -16,11 +16,12 @@ here = osp.abspath(osp.dirname(__file__))
 
 def header(path):
     test_name = osp.basename(path)
-    print('\n')
-    print('*' * 40)
-    print('Starting %s test' % test_name)
-    print('*' * 40)
-
+    print('\n'.join((
+        '\n',
+        '*' * 40,
+        'Starting %s test' % test_name,
+        '*' * 40
+    )), flush=True)
 
 def main():
     paths = [i for i in glob.glob('%s/*' % here) if osp.isdir(i)]