SVN: CMF/trunk/CMFCore/tests/base/utils.py - removed obsolete function

Yvo Schubbe <[email protected]>
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <[email protected]>
Log message for revision 70603:
  - removed obsolete function

Changed:
  U   CMF/trunk/CMFCore/tests/base/utils.py

-=-
Modified: CMF/trunk/CMFCore/tests/base/utils.py
===================================================================
--- CMF/trunk/CMFCore/tests/base/utils.py	2006-10-11 11:13:03 UTC (rev 70602)
+++ CMF/trunk/CMFCore/tests/base/utils.py	2006-10-11 15:57:25 UTC (rev 70603)
@@ -15,33 +15,6 @@
 $Id$
 """
 
-from unittest import TestSuite
-
-from sys import modules
-
-
-def build_test_suite(package_name, module_names, required=1,
-                     suite_name='test_suite'):
-    """
-    Utlitity for building a test suite from a package name
-    and a list of modules.
-
-    If required is false, then ImportErrors will simply result
-    in that module's tests not being added to the returned
-    suite.
-    """
-
-    suite = TestSuite()
-    try:
-        for name in module_names:
-            the_name = package_name+'.'+name
-            __import__(the_name,globals(),locals())
-            suite.addTest( getattr(modules[the_name], suite_name)() )
-    except ImportError:
-        if required:
-            raise
-    return suite
-
 def has_path( catalog, path ):
     """
         Verify that catalog has an object at path.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.