mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-08 12:28:05 +02:00
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:
parent
000658ac6a
commit
34275b1fef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue