summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-05-04 11:18:22 -0600
committerChad Smith <chad.smith@canonical.com>2018-05-04 11:18:22 -0600
commit80dfb3b023a268d6d6204220665c2cf43eac66df (patch)
tree0eeb76fc6db15e3f96a7ceef2261c68a0dfc9909 /tests
parentaae494c39f4c6f625e7409ca262e657d085dd5d1 (diff)
downloadvyos-cloud-init-80dfb3b023a268d6d6204220665c2cf43eac66df.tar.gz
vyos-cloud-init-80dfb3b023a268d6d6204220665c2cf43eac66df.zip
pycodestyle: Fix deprecated string literals, move away from flake8.
Fix remaining pycodesytle warnings related to invalid string literals introduced in more recent pycodeflakes versions https://bugs.python.org/issue27364 . Also stop using flake8 in tox as it is incompatible with newer versions of pyflakes. Instead we now add tox environments for pycodestyle and pyflakes individually. Set the versions in both pycodestyle and pyflakes to the currently available versions.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_ntp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_ntp.py b/tests/unittests/test_handler/test_handler_ntp.py
index 17c53559..6da4564e 100644
--- a/tests/unittests/test_handler/test_handler_ntp.py
+++ b/tests/unittests/test_handler/test_handler_ntp.py
@@ -706,7 +706,7 @@ class TestSupplementalSchemaValidation(CiTestCase):
cfg = {'confpath': 'someconf', 'check_exe': '', 'service_name': '',
'template': 'asdf', 'template_name': None, 'packages': 'NOPE'}
match = (r'Invalid ntp configuration:\\nExpected a list of required'
- ' package names for ntp:config:packages. Found \(NOPE\)')
+ ' package names for ntp:config:packages. Found \\(NOPE\\)')
with self.assertRaisesRegex(ValueError, match):
cc_ntp.supplemental_schema_validation(cfg)