diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 734b72b0c44..2268c71ad48 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -286,6 +286,7 @@ print_error() object *exception, *v, *tb, *f; err_fetch(&exception, &v, &tb); flushline(); + fflush(stdout); if (exception == NULL) fatal("print_error called but no exception"); if (exception == SystemExit) {