diff --git a/Lib/test/libregrtest/win_utils.py b/Lib/test/libregrtest/win_utils.py index ec2d6c663e83fb..8fa44f8c59c32c 100644 --- a/Lib/test/libregrtest/win_utils.py +++ b/Lib/test/libregrtest/win_utils.py @@ -59,7 +59,7 @@ def start(self): self.p = subprocess.Popen(command, stdout=command_stdout, cwd=support.SAVEDCWD) # Close our copy of the write end of the pipe - os.close(command_stdout) + # os.close(command_stdout) def close(self): if self.p is None: @@ -79,7 +79,7 @@ def read_output(self): if res != 0: return - return overlapped.getbuffer().decode() + return overlapped.getbuffer().decode(encoding='oem', errors='ignore') def getloadavg(self): typeperf_output = self.read_output() diff --git a/Misc/NEWS.d/next/Tests/2019-09-28-09-59-16.bpo-36670.g9nzfJ.rst b/Misc/NEWS.d/next/Tests/2019-09-28-09-59-16.bpo-36670.g9nzfJ.rst new file mode 100644 index 00000000000000..81e8bad46fa0a4 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-09-28-09-59-16.bpo-36670.g9nzfJ.rst @@ -0,0 +1,2 @@ +fixed encoding issues with test execution on non english systems these +systems will return default load 0.0