From 3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 2 Dec 2016 14:31:05 -0500 Subject: 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. --- tests/unittests/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unittests') 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()) -- cgit v1.2.3