* [RFC PATCH v2] tests/functional: tell pylint not to check c-modules
@ 2026-06-12 14:05 Alex Bennée
2026-06-12 14:46 ` Daniel P. Berrangé
0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennée @ 2026-06-12 14:05 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Thomas Huth, Philippe Mathieu-Daudé,
Daniel P. Berrangé
To fix:
qemu-test.test_pylint "/home/alex/lsrc/qemu.git/tests/functional/arm/test_integratorcp.py:83: I1101: Module 'cv2' has no 'imread' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects. (c-extension-no-member)"
Manually running python3 showed I could indeed import cv2 and call
those functions. Rather than allowing pylint to introspect lets just
tell it to skip c modules.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/functional/pylintrc | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/functional/pylintrc b/tests/functional/pylintrc
index 049c3e76f12..949bea611fe 100644
--- a/tests/functional/pylintrc
+++ b/tests/functional/pylintrc
@@ -58,6 +58,7 @@ confidence=HIGH,
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=bad-inline-option,
+ c-extension-no-member,
consider-using-f-string,
file-ignored,
fixme,
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH v2] tests/functional: tell pylint not to check c-modules
2026-06-12 14:05 [RFC PATCH v2] tests/functional: tell pylint not to check c-modules Alex Bennée
@ 2026-06-12 14:46 ` Daniel P. Berrangé
0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2026-06-12 14:46 UTC (permalink / raw)
To: Alex Bennée; +Cc: qemu-devel, Thomas Huth, Philippe Mathieu-Daudé
On Fri, Jun 12, 2026 at 03:05:31PM +0100, Alex Bennée wrote:
> To fix:
>
> qemu-test.test_pylint "/home/alex/lsrc/qemu.git/tests/functional/arm/test_integratorcp.py:83: I1101: Module 'cv2' has no 'imread' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects. (c-extension-no-member)"
>
> Manually running python3 showed I could indeed import cv2 and call
> those functions. Rather than allowing pylint to introspect lets just
> tell it to skip c modules.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> tests/functional/pylintrc | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-12 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12 14:05 [RFC PATCH v2] tests/functional: tell pylint not to check c-modules Alex Bennée
2026-06-12 14:46 ` Daniel P. Berrangé
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.