* Istvan Albert ([email protected]) wrote:
> I can't figure out why the doctests do not seem to be executing inside
> my documentation. I have enabled the doctest extension, but upon
> building no warnings/errors are generated. I feel like I am missing
> something obvious, but I can't figure out what that would be. This is
> what I have in my index.rst

  You don't mention how you are running sphinx, but I take it you're
running the doctest builder?  With your example and using the doctest builder
it works for me, and outputs the following:

    Making output directory...
    Sphinx v0.5.1, building doctest
    loading pickled environment... not found
    building [doctest]: targets for 1 source files that are out of date
    updating environment: 1 added, 0 changed, 0 removed
    reading sources... index
    pickling environment... done
    checking consistency... done
    running tests...

    Document: index
    ---------------
    **********************************************************************
    File "index.rst", line 6, in default
    Failed example:
        100
    Expected:
        200
    Got:
        100
    **********************************************************************
    1 items had failures:
       1 of   1 in default
    1 tests in 1 items.
    0 passed and 1 failed.
    ***Test Failed*** 1 failures.

    Doctest summary
    ===============
        1 test
        1 failure in tests
        0 failures in setup code
    build finished with problems.

Thanks,

James

Attachment: pgp4Ggc8ulZl9.pgp
Description: PGP signature

Reply via email to