--- a/test/test_datatypes.py
+++ b/test/test_datatypes.py
@@ -59,9 +59,9 @@
 
 def test_simple_sanitization():
     for datatype, in_value, out_value in GOOD_SIMPLE_VALUES:
-        yield check_good_value, datatype, in_value, out_value
+        check_good_value(datatype, in_value, out_value)
     for datatype, in_value in BAD_SIMPLE_VALUES:
-        yield check_bad_value, datatype, in_value
+        check_bad_value(datatype, in_value)
 
 def check_good_value(datatype, in_value, out_value):
     dt = datatype()
@@ -102,9 +102,9 @@
 
 def test_list_sanitization():
     for subtype, in_value, out_value in GOOD_LIST_VALUES:
-        yield check_good_list_value, subtype, in_value, out_value
+        check_good_list_value(subtype, in_value, out_value)
     for subtype, in_value, exc in BAD_LIST_VALUES:
-        yield check_bad_list_value, subtype, in_value, exc
+        check_bad_list_value(subtype, in_value, exc)
 
 def check_good_list_value(subtype, in_value, out_value):
     dt = soc.List(subtype)
@@ -139,9 +139,9 @@
 
 def test_choice_sanitization():
     for subtype, choices, value in GOOD_CHOICE_VALUES:
-        yield check_good_choice_value, subtype, choices, value
+        check_good_choice_value(subtype, choices, value)
     for subtype, choices, value, exc in BAD_CHOICE_VALUES:
-        yield check_bad_choice_value, subtype, choices, value, exc
+        check_bad_choice_value(subtype, choices, value, exc)
 
 def check_good_choice_value(subtype, choices, value):
     dt = soc.Choice(choices, subtype)
--- a/test/test_settings.py
+++ b/test/test_settings.py
@@ -21,9 +21,9 @@
 
 def test_name():
     for name in GOOD_NAMES:
-        yield check_good_name, name
+        check_good_name(name)
     for name in BAD_NAMES:
-        yield check_bad_name, name
+        check_bad_name(name)
 
 def check_good_name(name):
     setting = soc.StringSetting(name)
