From 34275b1fef0b777c337f36a93bf601a6f5245b5b Mon Sep 17 00:00:00 2001 From: Rogerio Alves Date: Mon, 6 Jan 2025 21:15:11 -0300 Subject: [PATCH] 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 --- tests/integration_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_test.py b/tests/integration_test.py index 98f12b0..c110b08 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -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 ):