From f21a4f0320bc7140dc21ac6db66cdb812bda0e45 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Sun, 30 Apr 2017 19:07:49 -0400 Subject: [PATCH] safer way to iterate over variants and their names --- lib/damask/test/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 6d8f1515c..1bb80a939 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -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 \