Fixed Python 2.6 str.format() compatibility

This commit is contained in:
James Mills
2016-01-13 14:00:41 -08:00
parent dc23f0b859
commit 8215b220f9
2 changed files with 10 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ class IntegrationTestFile(object):
[VSPEC_RUNNER, '.', VSPEC_FOLDER, self.path])
for line in output.splitlines():
if line.startswith(b'not ok') or line.startswith(b'Error'):
pytest.fail("{} failed:\n{}".format(
pytest.fail("{0} failed:\n{1}".format(
self.path, output.decode('utf-8')), pytrace=False)
def __repr__(self):