import unittest
import inspect
import pkgutil

import Orange
from Orange.data import Table
from Orange.regression import Learner


class RegressionLearnersTest(unittest.TestCase):
    def all_learners(self):
        regression_modules = pkgutil.walk_packages(
            path=Orange.regression.__path__,
            prefix="Orange.regression.",
            onerror=lambda x: None)
        for importer, modname, ispkg in regression_modules:
            try:
                module = pkgutil.importlib.import_module(modname)
            except ImportError:
                continue

            for name, class_ in inspect.getmembers(module, inspect.isclass):
                if issubclass(class_, Learner) and 'base' not in class_.__module__:
                    yield class_

    def test_adequacy_all_learners(self):
        for learner in self.all_learners():
            learner = learner()
            table = Table("iris")
            self.assertRaises(ValueError, learner, table)

@@ -38,16 +38,33 @@
  pkgutil
+%0Aimport traceback
 %0A%0Aimport
@@ -874,16 +874,37 @@
 ners():%0A
+            try:%0A    
         
@@ -927,16 +927,20 @@
 arner()%0A
+    
         
@@ -977,16 +977,20 @@
         
+    
 self.ass
@@ -1027,8 +1027,108 @@
  table)%0A
+            except TypeError as err:%0A                traceback.print_exc()%0A                continue%0A

Handle TypeError while testing all regression learners