8000 Fix ffprobe exception test · joebradly/ffmpeg-python@940b05f · GitHub
[go: up one dir, main page]

Skip to content

Commit 940b05f

Browse files
committed
Fix ffprobe exception test
1 parent 4558c25 commit 940b05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ffmpeg/tests/test_ffmpeg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def test_ffprobe():
491491

492492

493493
def test_ffprobe_exception():
494-
with pytest.raises(ffmpeg.ProbeException) as excinfo:
494+
with pytest.raises(ffmpeg.Error) as excinfo:
495495
ffmpeg.probe(BOGUS_INPUT_FILE)
496496
assert str(excinfo.value) == 'ffprobe error'
497-
assert b'No such file or directory' in excinfo.value.stderr_output
497+
assert 'No such file or directory'.encode() in excinfo.value.stderr

0 commit comments

Comments
 (0)
0