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 <[email protected]>
---
 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


Reply via email to