summaryrefslogtreecommitdiff
path: root/tests/unittests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_util.py')
-rw-r--r--tests/unittests/test_util.py2
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())