diff --git a/src/pyunit/TestLib.py b/src/pyunit/TestLib.py index 561453b2..e420990a 100755 --- a/src/pyunit/TestLib.py +++ b/src/pyunit/TestLib.py @@ -21,12 +21,10 @@ def parseOptions(*args): pass def runTests( testCase ): - testToRun = 'test' - myTestSuite = unittest.TestSuite() for i in testCase: try: - temp = unittest.makeSuite( i, testToRun ) + temp = unittest.defaultTestLoader.loadTestsFromTestCase( i ) myTestSuite.addTest(temp) except ValueError: pass