From 940b05f3fcf46f60eb02ebdabb58289db033dfae Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Sun, 20 May 2018 01:21:30 -0700 Subject: [PATCH] Fix ffprobe exception test --- ffmpeg/tests/test_ffmpeg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py index 2a322b4..7ab48a5 100644 --- a/ffmpeg/tests/test_ffmpeg.py +++ b/ffmpeg/tests/test_ffmpeg.py @@ -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