From 994e1b4f40df86a508e5a0a84f18d2bb3c67f87a Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 26 Sep 2023 09:38:10 +0000 Subject: [PATCH] ui.py: line_input(): restore stderr flush for test suite --- mmgen/ui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mmgen/ui.py b/mmgen/ui.py index 355e9d4c..76f8f450 100755 --- a/mmgen/ui.py +++ b/mmgen/ui.py @@ -60,6 +60,7 @@ def line_input(cfg,prompt,echo=True,insert_txt='',hold_protect=True): if cfg.test_suite_popen_spawn: msg(prompt) + sys.stderr.flush() # required by older Pythons (e.g. v3.7) reply = os.read(0,4096).decode().rstrip('\n') # strip NL to mimic behavior of input() elif not sys.stdin.isatty(): msg_r(prompt)