Patch Detail
Show a patch.
GET /api/patches/18373/?format=api
{ "id": 18373, "url": "https://patchwork.libcamera.org/api/patches/18373/?format=api", "web_url": "https://patchwork.libcamera.org/patch/18373/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20230309142601.70556-13-tomi.valkeinen@ideasonboard.com>", "date": "2023-03-09T14:25:58", "name": "[libcamera-devel,v4,12/15] py: unittests.py: Fix type checker warnings", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "a0e79db0d9ff338fc1992d088863067df6fac3e2", "submitter": { "id": 109, "url": "https://patchwork.libcamera.org/api/people/109/?format=api", "name": "Tomi Valkeinen", "email": "tomi.valkeinen@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/18373/mbox/", "series": [ { "id": 3796, "url": "https://patchwork.libcamera.org/api/series/3796/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3796", "date": "2023-03-09T14:25:46", "name": "py: New python bindings event handling", "version": 4, "mbox": "https://patchwork.libcamera.org/series/3796/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/18373/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/18373/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 2D338C32A3\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 9 Mar 2023 14:26:30 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A8D8062707;\n\tThu, 9 Mar 2023 15:26:29 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 43233626F1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 9 Mar 2023 15:26:21 +0100 (CET)", "from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id CB01B589;\n\tThu, 9 Mar 2023 15:26:20 +0100 (CET)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1678371989;\n\tbh=4MqxyjxY/iP++ZltTTNrTBKjC7IhTnuZczK+Y7Nzd5A=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=bS1/oxAvQZYSDN2V1nHE3A/YFNW6tJDMZFRctax6JJsLPM+2sUo/Gb2V+T54lD698\n\tiEs4kKxEgGifsNACEoUxGIRMj4SSaTChRpQZnwCfpgk9ffT8VpkeY9j2biybrZFXZo\n\teInKEe1LPu7lTIvUJczJFn4w+c6e2A/T2MbyNQzHNnOSmcvkfiQjn2gsE5i8ibkWaF\n\tr4dWKfLmS11JoTNMHxPmURm6XkJFYsE0s1pQ4aNOZxC/RGXIASy5JyItG4/0Z2xlih\n\tSW7mC7Bp9551uOazylM1J/rLM9ksZdqfl4RhII2vMmcRlvPuI6lNsC0tHRMTAxsjhY\n\tZpAPG6oYKzrWg==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1678371981;\n\tbh=4MqxyjxY/iP++ZltTTNrTBKjC7IhTnuZczK+Y7Nzd5A=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=qG1eKF/3zMULIX7VnTHvPcsudQxbPp6ZuL//Wl0obsSNvA79wPYSNA/KRLABQ3gEF\n\tudGuyV7MIDozrtd/Tx32W25Y4sP/angLYRBWEUEzcTrm5dUOpO05iuAgSAUbxNtL/Z\n\t4JYZyr4lqV/EIk9/0WCJ/cUUX6JOx+oY6OaJUhTA=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"qG1eKF/3\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 9 Mar 2023 16:25:58 +0200", "Message-Id": "<20230309142601.70556-13-tomi.valkeinen@ideasonboard.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230309142601.70556-1-tomi.valkeinen@ideasonboard.com>", "References": "<20230309142601.70556-1-tomi.valkeinen@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v4 12/15] py: unittests.py: Fix type\n\tchecker warnings", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "From": "Tomi Valkeinen via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\n---\n test/py/unittests.py | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)", "diff": "diff --git a/test/py/unittests.py b/test/py/unittests.py\nindex b52b3391..9fd8730e 100755\n--- a/test/py/unittests.py\n+++ b/test/py/unittests.py\n@@ -4,11 +4,9 @@\n # Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\n \n from collections import defaultdict\n-import errno\n import gc\n import libcamera as libcam\n import selectors\n-import time\n import typing\n import unittest\n import weakref\n@@ -406,7 +404,7 @@ class SimpleCaptureMethods(CameraTesterBase):\n running = True\n while running:\n events = sel.select()\n- for key, _ in events:\n+ for _ in events:\n for ev in cm.get_events():\n self.assertEqual(ev.type, libcam.Event.Type.RequestCompleted)\n reqs.append(ev.request)\n", "prefixes": [ "libcamera-devel", "v4", "12/15" ] }