summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2023-06-03 10:56:14 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-06-04 16:10:51 +0300
commitf44df6f4fa2051c3058ff2d4aa01cba5e69c7a95 (patch)
tree0b4913f18d61b51ffcbcc84b9c0bc848e6264d6f /test
parenta1f0556a46c80e4da5ada3028ea7aaaad3287d7c (diff)
py: unittests.py: Fix type checker warnings
Fix type checker warnings by dropping unused imports and using _ for variable names that are not used. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/py/unittests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/py/unittests.py b/test/py/unittests.py
index fe1e8ef0..1caea98e 100755
--- a/test/py/unittests.py
+++ b/test/py/unittests.py
@@ -4,11 +4,9 @@
# Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
from collections import defaultdict
-import errno
import gc
import libcamera as libcam
import selectors
-import time
import typing
import unittest
import weakref
@@ -282,7 +280,7 @@ class SimpleCaptureMethods(CameraTesterBase):
running = True
while running:
events = sel.select()
- for key, _ in events:
+ for _ in events:
ready_reqs = cm.get_ready_requests()
reqs += ready_reqs