From patchwork Sat Jun 3 07:56:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 18697 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D1238C32AE for ; Sat, 3 Jun 2023 07:57:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8EE0462897; Sat, 3 Jun 2023 09:57:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1685779042; bh=ukPLQkZ7mhOvt8DGT/hHKfTwnq7m5x/13Sc5Rq8R/NE=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=YCyTJcDOcPnIVwuFGwu4wbonguHC8q5qc2pDpnELFBuwqk910V2SmNTz4NXV4V0Dg V4Qu1+UOQ7YvfB8rADNudoTA4yVgLx7hbttN5MDyrrQohj08IexYPeQx+5l8OAykYg svXMQTfdpH6fB0OysgOjW1iCmkoSEOh4RD170qhcDBws6tntJtVFgEenX7sxPQ/AZ4 q+Qcoh2aMYEGr+9TRdDI1lh+Vn9ghfG4XvrL0xCyCmFa0e0wIPHFti+CH6n0YX6ihj 7i+crcRbkbKf06PvPSJPTRPgwwyNcFzNRt1Y9NZ5AnCpTUTN3AUoopemwM7o9D2RB4 BOcOvId06gzpw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 34B986288B for ; Sat, 3 Jun 2023 09:57:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="l3M7Y8wT"; dkim-atps=neutral Received: from desky.lan (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ACE11F07; Sat, 3 Jun 2023 09:56:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685779013; bh=ukPLQkZ7mhOvt8DGT/hHKfTwnq7m5x/13Sc5Rq8R/NE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l3M7Y8wTAjljUKsmrrQry5FqSkkMJUYYzzy7CJyERagzPpmJyaajY2yzL4q8+v/kZ Mr1Pihr1HFpnOQ9mJ8MdzMKHaROLQ9X1u6RprcDJijiRcED15a+AXaugV2DCj1jQje LrdvYW1DrZ1IzXZRv1zuH8N3rBX0d//mMK2xGO60= To: libcamera-devel@lists.libcamera.org Date: Sat, 3 Jun 2023 10:56:14 +0300 Message-Id: <20230603075615.20663-13-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230603075615.20663-1-tomi.valkeinen@ideasonboard.com> References: <20230603075615.20663-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 12/13] py: unittests.py: Fix type checker warnings X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Fix type checker warnings by dropping unused imports and using _ for variable names that are not used. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- 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 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)