Lines Matching defs:find
306 # For the rest, we only need to find the leftmost non-overlapping
313 startpos = got.find(w, startpos, endpos)
341 i = msg.find("\n")
345 i = msg.find(':', 0, end)
584 # This regular expression is used to find doctest examples in a
835 If the optional argument `recurse` is false, then `find` will
838 If the optional argument `exclude_empty` is false, then `find`
846 def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
860 - To find the name of the file containing the object.
861 - To help find the line number of the object within its
866 If `module` is False, no attempt to find the module will be made.
885 raise ValueError("DocTestFinder.find: name must be given "
898 # DocTestFinder._find_lineno to find the line number for a
1021 raise ValueError("DocTestFinder.find: __test__ keys "
1026 raise ValueError("DocTestFinder.find: __test__ values "
1136 # We couldn't find the line number.
1150 >>> tests = DocTestFinder().find(_TestClass)
1656 # We didn't find any match; return false.
1701 # Use difflib to find their differences.
1970 for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):
2126 for test in finder.find(f, name, globs=globs):
2398 tests = test_finder.find(module, globs=globs, extraglobs=extraglobs)
2623 tests = DocTestFinder().find(module)