Kaydet (Commit) c429a83c authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix an occurrence of cmp that was missed in r69025

üst a56c467a
......@@ -656,14 +656,18 @@ def _makeLoader(prefix, sortUsing, suiteClass=None):
if suiteClass: loader.suiteClass = suiteClass
return loader
def getTestCaseNames(testCaseClass, prefix, sortUsing=cmp):
def getTestCaseNames(testCaseClass, prefix, sortUsing=three_way_cmp):
return _makeLoader(prefix, sortUsing).getTestCaseNames(testCaseClass)
def makeSuite(testCaseClass, prefix='test', sortUsing=cmp, suiteClass=TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(testCaseClass)
def makeSuite(testCaseClass, prefix='test', sortUsing=three_way_cmp,
suiteClass=TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(
testCaseClass)
def findTestCases(module, prefix='test', sortUsing=cmp, suiteClass=TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromModule(module)
def findTestCases(module, prefix='test', sortUsing=three_way_cmp,
suiteClass=TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromModule(
module)
##############################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment