mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-102500: Implement PEP 688 (#102521)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
b17d32c114
commit
04f6733275
26 changed files with 640 additions and 15 deletions
|
@ -707,7 +707,7 @@ plain ol' Python and is guaranteed to be available.
|
|||
|
||||
>>> import builtins
|
||||
>>> tests = doctest.DocTestFinder().find(builtins)
|
||||
>>> 830 < len(tests) < 850 # approximate number of objects with docstrings
|
||||
>>> 830 < len(tests) < 860 # approximate number of objects with docstrings
|
||||
True
|
||||
>>> real_tests = [t for t in tests if len(t.examples) > 0]
|
||||
>>> len(real_tests) # objects that actually have doctests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue