[Piglit] [PATCH] backends_tests.py: Fix PEP 8 issues.

Vinson Lee vlee at freedesktop.org
Sat Mar 14 01:30:14 PDT 2015


Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 framework/tests/backends_tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/tests/backends_tests.py b/framework/tests/backends_tests.py
index b43302a..b3fbeac 100644
--- a/framework/tests/backends_tests.py
+++ b/framework/tests/backends_tests.py
@@ -73,7 +73,8 @@ def test_get_backend():
         'junit': backends.JUnitBackend,
     }
 
-    check = lambda n, i: nt.assert_is(backends.get_backend(n), i)
+    def check(n, i):
+        return nt.assert_is(backends.get_backend(n), i)
 
     for name, inst in backends_.iteritems():
         check.description = 'get_backend({0}) returns {0} backend'.format(name)
-- 
2.3.2



More information about the Piglit mailing list