[Piglit] [PATCH v2 11/26] framework/programs/run: remove redundant list() around comprehension

Dylan Baker dylan at pnwbakers.com
Thu Oct 27 21:31:39 UTC 2016


This is a list comprehension, it already results in a list. There is no
need to wrap it in the list() constructor call.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/programs/run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/programs/run.py b/framework/programs/run.py
index 64029a6..8b587f3 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -324,7 +324,7 @@ def run(input_):
 
         with open(args.test_list) as test_list:
             # Strip newlines
-            profiles[0].forced_test_list = list([t.strip() for t in test_list])
+            profiles[0].forced_test_list = [t.strip() for t in test_list]
 
     # Set the dmesg type
     if args.dmesg:
-- 
git-series 0.8.10


More information about the Piglit mailing list