From c88599f4fdec3b0a603a2e738c236a377397ea04 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Thu, 3 Jan 2019 11:38:00 -0800 Subject: [PATCH] Update test_wave_parsing.py Decode ffprobe output before handing over to json --- tests/test_wave_parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_wave_parsing.py b/tests/test_wave_parsing.py index 6d444f7..77cf6b8 100644 --- a/tests/test_wave_parsing.py +++ b/tests/test_wave_parsing.py @@ -17,7 +17,8 @@ def ffprobe(path): process = subprocess.run(arguments, stdin=None, stdout=PIPE, stderr=PIPE) if process.returncode == 0: - return json.loads(process.stdout) + output_str = process.stdout.decode('utf-8') + return json.loads(output_str) else: return None