[python3] - Fix low_bandwidth_audio_test.py

No-Presubmit: True
Bug: webrtc:13607
Change-Id: I88013e080adbafae3001cba4c1ed2428d4473d22
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249984
Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
Owners-Override: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Christoffer Jansson <jansson@google.com>
Commit-Queue: Christoffer Jansson <jansson@google.com>
Cr-Commit-Position: refs/heads/main@{#35839}
This commit is contained in:
Mirko Bonadei 2022-01-31 08:47:41 +01:00 committed by WebRTC LUCI CQ
parent a4290a7909
commit f3686711e9

View File

@ -203,7 +203,7 @@ def _RunPolqa(executable_path, reference_file, degraded_file):
out, err = process.communicate()
# Find the scores in stdout of POLQA.
match = re.search(r'\bMOS-LQO:\s+([\d.]+)', out)
match = re.search(r'\bMOS-LQO:\s+([\d.]+)', out.decode('utf-8'))
if process.returncode != 0 or not match:
if process.returncode == 2: