File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 66
77# Note loader and ignore are required arguments for unittest even if unused.
88def load_tests (loader , tests , ignore ):
9+ """
10+ Locates and returns a collection of unittests in a TestSuite object
11+ Parameters
12+ ----------
13+ loader :
14+ A required but unused parameter.
15+ tests :
16+ A unittest TestSuite object for collecting the needed test cases.
17+ ignore :
18+ A required but unused parameter.
19+ Returns
20+ -------
21+ tests :
22+ A unittest TestSuite object that holds test cases.
23+ """
924 for root , dirs , files in os .walk ("." ):
1025 for f in files :
1126 if f .endswith (".rst" ):
1227 tests .addTests (
1328 doctest .DocFileSuite (
29+ # ELLIPSIS option tells doctest to ignore portions of the verification value.
1430 os .path .join (root , f ), optionflags = doctest .ELLIPSIS
1531 )
1632 )
You can’t perform that action at this time.
0 commit comments