Here's the problem. I am writing doctests for sage/libs/mwrank/mwrank.pyx, which is the wrapper code for various eclib / mwrank functions in (my own) C++ code. Some of those functions have a "verbose" parameter, which is False by default, which cause the C++ function to produce extra output (to stdout). I want to doctest that capability. But when I do, although the output does appear, the doctesting system does not "notice" it and registers a failure.
At first I thought it was a problem of not flushing the stdout channel, since the output appeared in strange places. But I put in calls to sys.stdout.flush() in appropriate places, and now the output appears in the right place, but doctest thinks that there is no output. Is there a way to do this? If not, I will have to remove all the "verbose=True" examples from the doctests. John -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
