File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def testMultiply(self):
4646
4747__author__ = "Steve Purcell"
4848__email__ = "stephen_purcell at yahoo dot com"
49- __version__ = "#Revision: 1.56 $" [11 :- 2 ]
49+ __version__ = "#Revision: 1.57 $" [11 :- 2 ]
5050
5151import time
5252import sys
@@ -540,7 +540,7 @@ def getTestCaseNames(self, testCaseClass):
540540 """Return a sorted sequence of method names found within testCaseClass
541541 """
542542 def isTestMethod (attrname , testCaseClass = testCaseClass , prefix = self .testMethodPrefix ):
543- return attrname [: len (prefix )] == prefix and callable (getattr (testCaseClass , attrname ))
543+ return attrname . startswith (prefix ) and callable (getattr (testCaseClass , attrname ))
544544 testFnNames = filter (isTestMethod , dir (testCaseClass ))
545545 for baseclass in testCaseClass .__bases__ :
546546 for testFnName in self .getTestCaseNames (baseclass ):
You can’t perform that action at this time.
0 commit comments