safer way to iterate over variants and their names

This commit is contained in:
Philip Eisenlohr 2017-04-30 19:07:49 -04:00
parent d391c33f5b
commit f21a4f0320
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ class Test():
self.clean()
self.prepareAll()
for variant,name in enumerate(map(self.variantName,self.variants)):
for variant,object in enumerate(self.variants):
name = self.variantName(variant)
if self.options.show:
logging.critical('{}: {}'.format(variant+1,name))
elif self.options.select is not None \