Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ac9e9d03
Commit
ac9e9d03
authored
Jan 27, 2009
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an occurrence of cmp that was missed in r69025
parent
e3fa6230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Lib/unittest.py
Lib/unittest.py
+9
-5
No files found.
Lib/unittest.py
View file @
ac9e9d03
...
...
@@ -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
)
##############################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment