Sphinx Doctest: test the code without comparing the output.

Neil Cerutti neilc at norwich.edu
Mon Sep 23 12:53:53 EDT 2013


On 2013-09-23, Neil Cerutti <neilc at norwich.edu> wrote:
> Perhaps try the "advanced API" and define your oen
> OutputChecker to add the feature that you need.
>
> Figuring out how to best invoke doctest with your modified
> OutputChecker will take some digging in the source, probably
> looking at doctest.testmod. I don't see an example in the docs.

The docstring for doctest.DocTestRunner contains the example code
I was looking for.

-- 
Neil Cerutti



More information about the Python-list mailing list