diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-05-14 15:39:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 15:39:19 -0400 |
commit | 09492b1d0f4b1826a7a98709c61d48bf14a1ec64 (patch) | |
tree | 9150f282f7925c331235d1bb7199ba5b778c146e /cloudinit/sources | |
parent | 4261ae538563d262bc76b8c55f7cc0c8abb14b00 (diff) | |
download | vyos-cloud-init-09492b1d0f4b1826a7a98709c61d48bf14a1ec64.tar.gz vyos-cloud-init-09492b1d0f4b1826a7a98709c61d48bf14a1ec64.zip |
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
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/helpers/tests/test_netlink.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/tests/test_netlink.py b/cloudinit/sources/helpers/tests/test_netlink.py index c2898a16..58c3adc6 100644 --- a/cloudinit/sources/helpers/tests/test_netlink.py +++ b/cloudinit/sources/helpers/tests/test_netlink.py @@ -87,7 +87,7 @@ class TestParseNetlinkMessage(CiTestCase): data = None with self.assertRaises(AssertionError) as context: read_rta_oper_state(data) - self.assertTrue('data is none', str(context.exception)) + self.assertEqual('data is none', str(context.exception)) def test_read_invalid_rta_operstate_none(self): '''read_rta_oper_state returns none if operstate is none''' |