Under python 2.6 using {}.format()(without an index) is a ValueError.

This commit is contained in:
Pedro Algarvio 2013-08-06 19:29:08 +01:00
parent f704550dd7
commit 2b0bc7056e

View File

@ -70,7 +70,7 @@ class TestFileState(TestCase):
def test_contents_pillar_adds_newline(self):
# make sure the newline
pillar_value = 'i am the pillar value'
expected = '{}\n'.format(pillar_value)
expected = '{0}\n'.format(pillar_value)
self.run_contents_pillar(pillar_value, expected)