Fix ffprobe exception test

This commit is contained in:
Karl Kroening 2018-05-20 01:21:30 -07:00
parent 4558c25ced
commit 940b05f3fc

View File

@ -491,7 +491,7 @@ def test_ffprobe():
def test_ffprobe_exception():
with pytest.raises(ffmpeg.ProbeException) as excinfo:
with pytest.raises(ffmpeg.Error) as excinfo:
ffmpeg.probe(BOGUS_INPUT_FILE)
assert str(excinfo.value) == 'ffprobe error'
assert b'No such file or directory' in excinfo.value.stderr_output
assert 'No such file or directory'.encode() in excinfo.value.stderr