From 59ae690f9bb78ac7b7ee8971821fc77c849360ec Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 28 Jun 2016 19:25:15 -0500 Subject: [PATCH] Correct style in tests.py --- tools/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/tests.py b/tools/tests.py index 7e485758f8..1fe1b8eb04 100644 --- a/tools/tests.py +++ b/tools/tests.py @@ -1228,8 +1228,10 @@ TEST_MAP = dict([(test['id'], Test(i)) for i, test in enumerate(TESTS)]) # parser helpers def test_known(string): i = int(string) - if i >= 0 and i < len(TESTS) : return i - else : raise ArgumentTypeError("{0} does not index a test. The accepted range is 0 to {1}\nThe test mapping is:\n{2}".format(i, len(TEST_MAP) - 1, columnate([str(i) + ":" + t['id'] for i,t in zip(range(len(TESTS)), TESTS)]))) + if i >= 0 and i < len(TESTS): + return i + else: + raise ArgumentTypeError("{0} does not index a test. The accepted range is 0 to {1}\nThe test mapping is:\n{2}".format(i, len(TEST_MAP) - 1, columnate([str(i) + ":" + t['id'] for i,t in zip(range(len(TESTS)), TESTS)]))) def test_name_known(string): nlist = string.split(',')