Fix generation of url regex for Go

This commit is contained in:
Kovid Goyal
2023-03-09 18:59:09 +05:30
parent 2aa9187428
commit 0e5ed29d83
7 changed files with 38 additions and 19 deletions

View File

@@ -169,7 +169,7 @@ def run_python_tests(args: Any, go_proc: 'Optional[subprocess.Popen[bytes]]' = N
def print_go() -> None:
try:
print(go_proc.stdout.read().decode(), end='', flush=True)
print(go_proc.stdout.read().decode('utf-8', 'replace'), end='', flush=True)
except KeyboardInterrupt:
go_proc.terminate()
if go_proc.wait(0.1) is None: