Index: unittest.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v retrieving revision 1.38 diff -u -r1.38 unittest.py --- unittest.py 7 Feb 2005 14:16:21 -0000 1.38 +++ unittest.py 26 Jul 2005 03:42:24 -0000 @@ -501,10 +501,11 @@ """Return a suite of all tests cases contained in the given module""" tests = [] for name in dir(module): - obj = getattr(module, name) - if (isinstance(obj, (type, types.ClassType)) and - issubclass(obj, TestCase)): - tests.append(self.loadTestsFromTestCase(obj)) + if not name.startswith('_'): + obj = getattr(module, name) + if (isinstance(obj, (type, types.ClassType)) and + issubclass(obj, TestCase)): + tests.append(self.loadTestsFromTestCase(obj)) return self.suiteClass(tests) def loadTestsFromName(self, name, module=None):