trivial: fixes unknown option value for pylint < 3.3.0

The too-many-positional-arguments warning introduced in commit 4a367430
caused a regression in pylint-integration-tests for versions of pylint < 3.3.0,
as these versions do not support the too-many-positional-arguments check.

Added disable=unknown-option-value to the pylint disable line for compatibility
with pylint < 3.3.0, avoiding test failures.

Kept disable=too-many-positional-arguments for pylint >= 3.3.0, since the
function exceeds the maximum allowed positional arguments (R0917) and may cause
lint errors.

Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/174
This commit is contained in:
Rogerio Alves 2025-01-06 21:15:11 -03:00
parent 000658ac6a
commit 34275b1fef

View file

@ -449,7 +449,7 @@ class Tests(dbusmock.DBusTestCase):
+ f"but '{self.read_file_contents(path)}'",
)
# pylint: disable=too-many-arguments,too-many-positional-arguments
# pylint: disable=too-many-arguments,unknown-option-value,too-many-positional-arguments
def assert_sysfs_attr_eventually_is(
self, device, attribute, contents, timeout=800, keep_checking=0
):