@samitouri / QOSamiQemu / commits / 4fd6561228

tests/functional: fix pylint false positives for cv2 module

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)" Note: I also tried with extension-pkg-allow-list, but that didn't work for some reason. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260815072421.4117291-1-marcandre.lureau@redhat.com>

Marc-André Lureau committed Aug 15, 2026 at 11:24 UTC 4fd6561228c37b6a210242157cf6c1e574b364dd
1 file changed +6
tests/functional/pylintrc
+6
@@ -79,6 +79,12 @@ disable=bad-inline-option,
79 useless-suppression,
80
81
82 +[TYPECHECK]
83 +
84 +# cv2 is a C extension module whose members are not visible to pylint
85 +generated-members=cv2.*
86 +
87 +
88 [SIMILARITIES]
89
90 # Minimum lines number of a similarity.