mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 01:40:42 +00:00
Update test_wave_parsing.py
Removed capture_output argument, it's too new
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import json
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from subprocess import PIPE
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
@@ -13,7 +14,7 @@ def ffprobe(path):
|
|||||||
|
|
||||||
arguments = [ FFPROBE , "-of", "json" , "-show_format", "-show_streams", 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:
|
if process.returncode == 0:
|
||||||
return json.loads(process.stdout)
|
return json.loads(process.stdout)
|
||||||
|
|||||||
Reference in New Issue
Block a user