safer way to iterate over variants and their names
This commit is contained in:
parent
d391c33f5b
commit
f21a4f0320
|
@ -85,7 +85,8 @@ class Test():
|
||||||
self.clean()
|
self.clean()
|
||||||
self.prepareAll()
|
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:
|
if self.options.show:
|
||||||
logging.critical('{}: {}'.format(variant+1,name))
|
logging.critical('{}: {}'.format(variant+1,name))
|
||||||
elif self.options.select is not None \
|
elif self.options.select is not None \
|
||||||
|
|
Loading…
Reference in New Issue