[Piglit] [PATCH 2/4] xts.py: Simplify generator statement
Dylan Baker
baker.dylan.c at gmail.com
Wed Dec 31 16:21:56 PST 2014
Rather than wrapping a generator in a generator, just expose the inner
generator
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
tests/xts.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/xts.py b/tests/xts.py
index d4577b6..27865a9 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -175,7 +175,7 @@ def populate_profile():
continue
# incrementing number generator
- counts = (x for x in itertools.count(1, 1))
+ counts = itertools.count(start=1)
# Walk the file looking for >>ASSERTION, each of these corresponds
# to a generated subtest, there can be multiple subtests per .m
--
2.2.1
More information about the Piglit
mailing list