From: Thomas Huth <thuth@redhat.com>
To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH] tests/functional: fix pylint false positives for cv2 module
Date: Mon, 17 Aug 2026 09:18:52 +0200 [thread overview]
Message-ID: <54495516-9f01-4077-860a-a4c9cc612a73@redhat.com> (raw)
In-Reply-To: <20260815072421.4117291-1-marcandre.lureau@redhat.com>
On 15/08/2026 09.24, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Add generated-members=cv2.* to pylintrc so pylint skips member
> checking on the cv2 C extension module, whose members are not
> visible to static analysis.
>
> Silence:
> 2026-08-15 10:42:08,710 - INFO: qemu-test.test_pylint Checking files in /home/elmarco/src/qemu.qom-qapi/tests/functional/arm with pylint
> 2026-08-15 10:42:10,941 - ERROR: qemu-test.test_pylint "/home/elmarco/src/qemu.qom-qapi/tests/functional/arm/test_integratorcp.py:83: E1101: Module 'cv2' has no 'imread' member (no-member)"
Alex recently already sent a patch for that error here:
https://gitlab.com/qemu-project/qemu/-/commit/dd14a21b9dc1
Didn't that help to silence the message in your case, too?
Thomas
> Note: I also tried with extension-pkg-allow-list, but that didn't work
> for some reason.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> tests/functional/pylintrc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/functional/pylintrc b/tests/functional/pylintrc
> index 949bea611fe4..373aabd6ca3f 100644
> --- a/tests/functional/pylintrc
> +++ b/tests/functional/pylintrc
> @@ -79,6 +79,12 @@ disable=bad-inline-option,
> useless-suppression,
>
>
> +[TYPECHECK]
> +
> +# cv2 is a C extension module whose members are not visible to pylint
> +generated-members=cv2.*
> +
> +
> [SIMILARITIES]
>
> # Minimum lines number of a similarity.
next prev parent reply other threads:[~2026-08-17 7:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-15 7:24 [PATCH] tests/functional: fix pylint false positives for cv2 module marcandre.lureau
2026-08-17 7:18 ` Thomas Huth [this message]
2026-08-17 7:57 ` Marc-André Lureau
2026-08-17 8:38 ` Thomas Huth
2026-08-17 10:54 ` Marc-André Lureau
2026-08-17 11:01 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54495516-9f01-4077-860a-a4c9cc612a73@redhat.com \
--to=thuth@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.