From 09492b1d0f4b1826a7a98709c61d48bf14a1ec64 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 14 May 2020 15:39:19 -0400 Subject: cloudinit: minor pylint fixes (#360) We recently discovered that pylint is failing to report some errors when invoked across our entire codebase (see https://github.com/PyCQA/pylint/issues/3611). I've run pylint across every Python file under cloudinit/[0], and this commit fixes the issues so-discovered. [0] find cloudinit/ -name "*.py" | xargs -n 1 -t .tox/pylint/bin/python -m pylint --- cloudinit/tests/test_conftest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit/tests') diff --git a/cloudinit/tests/test_conftest.py b/cloudinit/tests/test_conftest.py index 11b91327..b39637d8 100644 --- a/cloudinit/tests/test_conftest.py +++ b/cloudinit/tests/test_conftest.py @@ -13,6 +13,8 @@ class TestDisableSubpUsage: def test_typeerrors_on_incorrect_usage(self): with pytest.raises(TypeError): + # We are intentionally passing no value for a parameter, so: + # pylint: disable=no-value-for-parameter util.subp() @pytest.mark.parametrize('disable_subp_usage', [False], indirect=True) -- cgit v1.2.3