Skip to content

Fix and improve doctest's documentation #134918

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

When working on #108885 I found several issues in the doctest documentation.

  • doctets.failureException does not exist. The referred exception is unittest.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

Metadata

Metadata

Labels

3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesdocsDocumentation in the Doc dir

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions