[SciPy-dev] print in tests
Tue Nov 17 15:32:42 CST 2009
On Tue, Nov 17, 2009 at 15:28, <firstname.lastname@example.org> wrote:
> On Tue, Nov 17, 2009 at 4:16 PM, Anne Archibald
> <email@example.com> wrote:
>> 2009/11/17 <firstname.lastname@example.org>:
>>> scipy.stats vonmises.pyx has a print left in it, that creates a lot
>>> of output when running the tests.
>> Oops. Fixed.
>>> scipy\io\tests\test_wavfile.py has a print
>> More generally, though, should we assume people are going to be using
>> nosetests? If so, then stray prints are not a problem as long as they
>> are in the tests - they don't appear unless the test fails, in which
>> case they can be rather handy.
> The advertised is scipy.test() , scipy.stats.test(). I almost never use
> nosetests directly, unless I target very specific tests.
It doesn't matter. Those functions use nosetests.
> scipy.test() prints so much on the command line that I loose the beginning.
Why would you lose the beginning? Just bump up the number of lines
that are retained by the command window.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Scipy-dev