test/py: Disable error E0611 in two cases for pylint
PATCH 1/1 test/py: Disable error E0611 in two cases for pylint
Recently pylint has started to complain about:
No name 'fs_helper' in module 'tests' (no-name-in-module)
Due to:
from tests import fs_helper
However, we have:test/py/tests/fs_helper.py
And since we do not want to add a dummy test/py/tests/__init__.py to silence this warning we instead just disable it as needed.
Cc Simon Glass <[email protected]>
Signed-off-by Tom Rini <[email protected]>
--- test/py/tests/test_fs/conftest.py | 1 + test/py/tests/test_ut.py | 1 + 2 files changed, 2 insertions(+)
test/py/tests/test_fs/conftest.py +1 -0
@@ -9,6 +9,7 @@ import re from subprocess import call, check_call, check_output, CalledProcessError from fstest_defs import * import u_boot_utils as util +# pylint: disable=E0611 from tests import fs_helper supported_fs_basic = ['fat16', 'fat32', 'ext4']
test/py/tests/test_ut.py +1 -0
@@ -9,6 +9,7 @@ import os.path import pytest import u_boot_utils +# pylint: disable=E0611 from tests import fs_helper def mkdir_cond(dirname):
Signature · 1 line
2.34.1
Quoted 6 lines · Tom Rini
Recently pylint has started to complain about:
No name 'fs_helper' in module 'tests' (no-name-in-module)Due to:
from tests importfs_helper
Quoted 8 lines
However, we have:
test/py/tests/fs_helper.pyAnd since we do not want to add a dummy
test/py/tests/__init__.pyto silence this warning we instead just disable it as needed.Cc Simon Glass <[email protected]>Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master and u-boot/next, to unbreak CI now, thanks!
Signature · 1 line
Tom