A new release of the doctest package  is out, version 0.7.0,
maintained by myself and Michael Walter, with contributions from Mike
Miller. See  for a summary of changes.
Doctest: Find and run example code within documentation.
Formatted blocks of example code are extracted from documentation
files and executed to confirm their output is correct. This can be
part of a testing framework or simply to ensure that documentation
stays up-to-date during software development.