[Piglit] [PATCH 08/20] test_lists.py: use utils.nose_generator

Dylan Baker baker.dylan.c at gmail.com
Sat Jun 14 08:05:17 PDT 2014


Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 framework/tests/test_lists.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/framework/tests/test_lists.py b/framework/tests/test_lists.py
index fe5ec13..5343b44 100644
--- a/framework/tests/test_lists.py
+++ b/framework/tests/test_lists.py
@@ -29,21 +29,21 @@ es3conform, etc)
 import importlib
 import os.path as path
 from nose.plugins.skip import SkipTest
+import framework.tests.utils as utils
 
 
+ at utils.nose_generator
 def gen_test_import():
     """ Generates a bunch of tests to import the various test modules """
-    yieldable = check_import
-
     # Test the various OpenGL modules
     for module in ['all', 'quick', 'gpu', 'sanity', 'r500', 'r300']:
-        yieldable.description = "Test import of tests.{}".format(module)
-        yield yieldable, "tests." + module
+        check_import.description = "Test import of tests.{}".format(module)
+        yield check_import, "tests." + module
 
     # Test the various OpenCL modules
     for module in ['cl', 'all_cl', 'quick_cl']:
-        yieldable.description = "Test import of tests.{}".format(module)
-        yield yieldable, "tests." + module
+        check_import.description = "Test import of tests.{}".format(module)
+        yield check_import, "tests." + module
 
 
 def check_import(module):
-- 
2.0.0



More information about the Piglit mailing list