pexpect_helper to unconditionally output to the tty

With the new test runner, pexpect_helper no longer sees a tty so wasn't
outputting the buffer. Just always do it.
This commit is contained in:
ridiculousfish 2021-10-29 20:45:42 -07:00
parent f373e6e923
commit e08b71592e

View File

@ -268,16 +268,11 @@ class SpawnedProc(object):
print("{CYAN}Escaped buffer:{RESET}".format(**colors)) print("{CYAN}Escaped buffer:{RESET}".format(**colors))
print(escape(self.spawn.before)) print(escape(self.spawn.before))
print("") print("")
if sys.stdout.isatty(): print("{CYAN}When written to the tty, this looks like:{RESET}".format(**colors))
print( print("{CYAN}<-------{RESET}".format(**colors))
"{CYAN}When written to the tty, this looks like:{RESET}".format( sys.stdout.write(self.spawn.before)
**colors sys.stdout.flush()
) print("{RESET}\n{CYAN}------->{RESET}".format(**colors))
)
print("{CYAN}<-------{RESET}".format(**colors))
sys.stdout.write(self.spawn.before)
sys.stdout.flush()
print("{RESET}\n{CYAN}------->{RESET}".format(**colors))
print("") print("")