On Thu, Dec 3, 2009 at 6:29 PM, Dave Fowler <[email protected]> wrote:
> My Django tests have started to print out the results instead of
> registering them for the test results.  You can see here, as the tests
> are run it prints out the True and False results (where normally it
> just prints out a list of periods)  that the docstring tests are
> expecting,
>
> and then latter errors out saying that it got no result.

It looks to me like you've got a stray print statement somewhere in
your code. Doctests track all content written to stdout, not just the
printed value of the return value of a function. If you have a stray
debug print statement somewhere in your code, it will be corrupting
your results (unless, of course, you update the expected results in
your test to include the debug output).

Yours,
Russ Magee %-)

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to