mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
#18705: merge with 3.3.
This commit is contained in:
commit
9a3777e525
26 changed files with 49 additions and 49 deletions
|
@ -417,7 +417,7 @@ class Example:
|
|||
zero-based, with respect to the beginning of the DocTest.
|
||||
|
||||
- indent: The example's indentation in the DocTest string.
|
||||
I.e., the number of space characters that preceed the
|
||||
I.e., the number of space characters that precede the
|
||||
example's first prompt.
|
||||
|
||||
- options: A dictionary mapping from option flags to True or
|
||||
|
@ -897,7 +897,7 @@ class DocTestFinder:
|
|||
if '__name__' not in globs:
|
||||
globs['__name__'] = '__main__' # provide a default module name
|
||||
|
||||
# Recursively expore `obj`, extracting DocTests.
|
||||
# Recursively explore `obj`, extracting DocTests.
|
||||
tests = []
|
||||
self._find(tests, obj, name, module, source_lines, globs, {})
|
||||
# Sort the tests by alpha order of names, for consistency in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue