Fixed bug in tests.py when only one test is run.

This commit is contained in:
Chris Palmer 2019-06-13 19:47:02 +01:00
parent 4485235509
commit db3b191552
1 changed files with 5 additions and 3 deletions

View File

@ -144,9 +144,11 @@ def tests(tests):
if type == vtype:
type = types[0] if cap_name[0] <= vsplit else types[1]
if not type in bodies:
bodies[type] = []
index[type] = []
for t in types:
if not t in bodies:
bodies[t] = []
index[t] = []
body = bodies[type]
index[type] += [cap_name]