summaryrefslogtreecommitdiff
path: root/tests/unittests/test_cli.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-12 14:25:32 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-12 14:25:32 -0700
commit78cbc764486060928541b9dee6ce5779e622d1fa (patch)
tree48a886ea0a9857ce353eebe504048e656e1c6e92 /tests/unittests/test_cli.py
parent690bdce9a73ec6d00b4eebbbca31cc527e7b2fce (diff)
parent811f7b5b3c4590ee4a16662db37b1f37541d9822 (diff)
downloadvyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.tar.gz
vyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.zip
Enable flake8 and fix a large amount of reported issues
Diffstat (limited to 'tests/unittests/test_cli.py')
-rw-r--r--tests/unittests/test_cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_cli.py b/tests/unittests/test_cli.py
index ed863399..f537bd83 100644
--- a/tests/unittests/test_cli.py
+++ b/tests/unittests/test_cli.py
@@ -1,7 +1,7 @@
import imp
import os
-import sys
import six
+import sys
from . import helpers as test_helpers
@@ -31,7 +31,7 @@ class TestCLI(test_helpers.FilesystemMockingTestCase):
'cli', open(BIN_CLOUDINIT), '', ('', 'r', imp.PY_SOURCE))
try:
return cli.main()
- except:
+ except Exception:
pass
@test_helpers.skipIf(not os.path.isfile(BIN_CLOUDINIT), "no bin/cloudinit")