fix format field index (py2.6 things)

This commit is contained in:
Rossen Georgiev 2015-05-16 22:08:52 +01:00
parent b5c0ce07ac
commit d55cc91176
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ParseCommentTelemetry(unittest.TestCase):
bits = None
if len(vals) is 5 and randint(1, 10) > 5:
bits = "{:08b}".format(randint(0, 255))[::-1]
bits = "{0:08b}".format(randint(0, 255))[::-1]
testData = self.genTelem(i, vals, bits)