diff --git a/tests/test_video.py b/tests/test_video.py index 060f75e..f0b8d3d 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -126,6 +126,11 @@ def ioctl(self, fd, ioc, arg): # noqa: C901 raise OSError(EINVAL, "ups!") arg.name = self.input0_name arg.type = raw.InputType.CAMERA + if isinstance(arg, raw.v4l2_output): + if arg.index > 0: + raise OSError(EINVAL, "ups!") + arg.name = self.input0_name + arg.type = raw.OutputType.ANALOG elif isinstance(arg, raw.v4l2_query_ext_ctrl): if arg.index == 0: arg.name = b"brightness"