From bdb39684c77305e231734ce5f915b01d4dcc2e2e Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 1 Jan 2019 12:15:17 -0800 Subject: [PATCH] Update test_wave_parsing.py Removed capture_output argument, it's too new --- 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 2a257b8..1ed952d 100644 --- a/tests/test_wave_parsing.py +++ b/tests/test_wave_parsing.py @@ -1,6 +1,7 @@ import os.path import json import subprocess +from subprocess import PIPE from unittest import TestCase @@ -13,7 +14,7 @@ def ffprobe(path): arguments = [ FFPROBE , "-of", "json" , "-show_format", "-show_streams", path ] - process = subprocess.run(arguments, stdin=None, capture_output=True) + process = subprocess.run(arguments, stdin=None, stdout=PIPE, stderr=PIPE) if process.returncode == 0: return json.loads(process.stdout)