diff --git a/test/run_tests.py b/test/run_tests.py
index dc259b4b1be996e6c15460fe0b43cc6bb6b7d1ef..dd45fac94fce11829d1f560db69aa346c4d07633 100644
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -1,6 +1,7 @@
 import pykat
 import traceback
 import os
+import sys
 
 class bcolors:
     HEADER = '\033[95m'
@@ -36,6 +37,8 @@ for path, folders, files in os.walk("./test_scripts"):
                     traceback.print_exc()
                     errors.append(filename)
                     print(bcolors.ENDC)
+                    sys.stdout.flush()
+                    sys.stderr.flush()
                 finally:
                     os.chdir(testdir)
                 print("----------------------------------------------------------------------------------------")