Improvements to the doctest standard library
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
README.rst
doctest2.py
setup.cfg
setup.py
test.py

README.rst

doctest2

This project is an effort to make Python's doctest module more awesome.

Goals

  • Iron out some of the wrinkles and warts in Python's doctest
  • Retain backward compatibility with existing doctest behavior
  • Distribute as a package installable with pip
  • Eventually propose a merge into the standard Python distribution

Plan

  • Use doctest-driven development
  • Initially +SKIP any features that aren't implemented
  • Take out +SKIP directives as things get finished

Testing

Testing is mostly done with nose at the moment. Tests are in the tests directory, and nose configuration is in setup.cfg. Run nose like this:

$ nosetests

There is also a quick-and-dirty test.py script designed to cover the doctest2.py file itself, as well as the tests/rst/*.rst files that describe new features. These should be merged into the nose tests if possible.

Credits

License

This software is licensed under the Python Software Foundation License (PSFL).