Skip to content

Commit 59ae690

Browse files
committed
Correct style in tests.py
1 parent d6bee56 commit 59ae690

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,10 @@ def __getitem__(self, key):
12281228
# parser helpers
12291229
def test_known(string):
12301230
i = int(string)
1231-
if i >= 0 and i < len(TESTS) : return i
1232-
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)])))
1231+
if i >= 0 and i < len(TESTS):
1232+
return i
1233+
else:
1234+
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)])))
12331235

12341236
def test_name_known(string):
12351237
nlist = string.split(',')

0 commit comments

Comments
 (0)