This decorator wraps the resulting functions from the test generators in
an instance. This works around a nose generator design flaw, described
elsewhere in greater detail.

Signed-off-by: Dylan Baker <[email protected]>
---
 framework/tests/profile_tests.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/framework/tests/profile_tests.py b/framework/tests/profile_tests.py
index 83880f9..1d825c7 100644
--- a/framework/tests/profile_tests.py
+++ b/framework/tests/profile_tests.py
@@ -140,6 +140,7 @@ def test_testprofile_update_test_list():
     nt.assert_dict_equal(profile1.test_list, baseline)
 
 
[email protected]_generator
 def generate_prepare_test_list_flatten():
     """ Generate tests for TestProfile.prepare_test_list() """
     tests = {'group1': {'test1': 'thingy', 'group3': {'test2': 'thing'}},
@@ -180,6 +181,7 @@ def check_mixed_flatten(tests, testlist):
     nt.assert_dict_equal(profile_.test_list, baseline)
 
 
[email protected]_generator
 def generate_prepare_test_list_test_test_matches():
     """ Generate tests for TestProfile.perpare_test_list filtering """
     data = {'group1/test1': 'thingy', 'group1/group3/test2': 'thing',
-- 
2.1.1

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

Reply via email to