[libcamera-devel] [PATCH v5 12/13] py: unittests.py: Fix type checker warnings
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Sat Jun 3 09:56:14 CEST 2023
Fix type checker warnings by dropping unused imports and using _ for
variable names that are not used.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
test/py/unittests.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/test/py/unittests.py b/test/py/unittests.py
index 024d9752..967e791f 100755
--- a/test/py/unittests.py
+++ b/test/py/unittests.py
@@ -4,11 +4,9 @@
# Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
from collections import defaultdict
-import errno
import gc
import libcamera as libcam
import selectors
-import time
import typing
import unittest
import weakref
@@ -410,7 +408,7 @@ class SimpleCaptureMethods(CameraTesterBase):
running = True
while running:
events = sel.select()
- for key, _ in events:
+ for _ in events:
for ev in cm.get_events():
self.assertEqual(ev.type, libcam.Event.Type.RequestCompleted)
reqs.append(ev.request)
--
2.34.1
More information about the libcamera-devel
mailing list