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))
-- 
1.7.10.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to