Fix and improve doctest's documentation #134918
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dir
Description
When working on #108885 I found several issues in the doctest documentation.
doctets.failureExceptiondoes not exist. The referred exception isunittest.TestCase.failureException.- Several copy-paste and markup errors.
- Example for float formatting is outdated since Python 3.0. repr() and str() for floats now have the same precision and do not depend on the platform C library.
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
- StatusShow more project fieldsTodo
Activity
pythongh-134918: Fix and improve doctest's documentation
pythongh-134918: Fix and improve doctest's documentation
gh-134918: Fix and improve doctest's documentation (GH-134919)
pythongh-134918: Fix and improve doctest's documentation (pythonGH-13…
pythongh-134918: Fix and improve doctest's documentation (pythonGH-13…
[3.14] gh-134918: Fix and improve doctest's documentation (GH-134919) (…
[3.13] gh-134918: Fix and improve doctest's documentation (GH-134919) (…
pythongh-134918: Fix and improve doctest's documentation (pythonGH-13…
pythongh-134918: Fix and improve doctest's documentation (pythonGH-13…