[Piglit] [PATCH 10/20] framework: Don't use automatic tuple parameter unpacking.

Jon Severinsson jon at severinsson.net
Fri Apr 12 16:39:52 PDT 2013

It is no longer supported in Python 3.x, but unpacking the tuple parameter
inside the function works just fine on both old and new Python versions.
 framework/core.py |    3 ++-
 1 fil ändrad, 2 tillägg(+), 1 borttagning(-)

diff --git a/framework/core.py b/framework/core.py
index 422fa02..744fda4 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -554,7 +554,8 @@ class TestProfile:
 		def matches_any_regexp(x, re_list):
 			return True in map(lambda r: r.search(x) != None, re_list)
-		def test_matches((path, test)):
+		def test_matches(item):
+			path, test = item
 			return ((not env.filter or matches_any_regexp(path, env.filter)) and
 			        not path in env.exclude_tests and
 			        not matches_any_regexp(path, env.exclude_filter))

More information about the Piglit mailing list