summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2020-06-01 14:20:39 -0700
committerGitHub <noreply@github.com>2020-06-01 17:20:39 -0400
commit4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1 (patch)
treec60b8f1d4ca9735efee890042b9d32ab6bc51f7d /tests/unittests/test_handler
parent1211ab449bdfa34b8883c7386772155e6a516ebb (diff)
downloadvyos-cloud-init-4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1.tar.gz
vyos-cloud-init-4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1.zip
test: fix all flake8 E741 errors (#401)
This removes the use of variables named ‘l’, ‘O’, or ‘I’. Generally these are used in list comprehension to read the line of lines.
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source_v3.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source_v3.py b/tests/unittests/test_handler/test_handler_apt_source_v3.py
index 4762dbef..aefe26c4 100644
--- a/tests/unittests/test_handler/test_handler_apt_source_v3.py
+++ b/tests/unittests/test_handler/test_handler_apt_source_v3.py
@@ -1033,7 +1033,9 @@ class TestDebconfSelections(TestCase):
# assumes called with *args value.
selections = m_set_sel.call_args_list[0][0][0].decode()
- missing = [l for l in lines if l not in selections.splitlines()]
+ missing = [
+ line for line in lines if line not in selections.splitlines()
+ ]
self.assertEqual([], missing)
@mock.patch("cloudinit.config.cc_apt_configure.dpkg_reconfigure")