[SciPy-dev] Two new test failures

Pauli Virtanen pav@iki...
Thu Nov 13 10:51:50 CST 2008

Thu, 13 Nov 2008 10:28:40 -0500, josef.pktd wrote:
> The first test failure in logser is a known failure that I haven't
> marked yet as such (the error is in numpy.random according to my tests).
> The second failure, nbinom, I don't get in my test runs. Since these are
> random tests, it might be an accidental failure and I might have to add
> a comment or reduce the precision of the test.

Could you set the random seed manually in the test fixture setup? [1] 
This way the tests would fail deterministically. I think scipy.stats uses 
numpy.random, so calling numpy.random.seed would suffice.

.. [1] cf. http://somethingaboutorange.com/mrl/projects/nose/

Pauli Virtanen

More information about the Scipy-dev mailing list