diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-12-02 14:31:05 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-12-02 14:31:05 -0500 |
commit | 3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b (patch) | |
tree | 18cf4f3a6aa1d14f7073e18a1c561aca0c3ed6dd /tests/unittests | |
parent | 2d2ec70f06015f0624f1d0d328cc97f1fb5c29de (diff) | |
download | vyos-cloud-init-3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b.tar.gz vyos-cloud-init-3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b.zip |
fix problems found in python2.6 test.
These are just simple syntax fixes to work correctly on python2.6.
Found when testing in a centos 6 container.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_util.py b/tests/unittests/test_util.py index bf9df561..4df1c912 100644 --- a/tests/unittests/test_util.py +++ b/tests/unittests/test_util.py @@ -626,7 +626,7 @@ class TestProcessExecutionError(helpers.TestCase): def test_pexec_error_indent_text(self): error = util.ProcessExecutionError() msg = 'abc\ndef' - formatted = 'abc\n{}def'.format(' ' * 4) + formatted = 'abc\n{0}def'.format(' ' * 4) self.assertEqual(error._indent_text(msg, indent_level=4), formatted) self.assertEqual(error._indent_text(msg.encode(), indent_level=4), formatted.encode()) |