[Numpy-discussion] ANN: NumPy 1.2.0

Pauli Virtanen pav@iki...
Mon Sep 29 12:14:38 CDT 2008

Mon, 29 Sep 2008 11:05:09 -0600, Charles R Harris wrote:
[clip: assert in tests]
> Using assert for this sort of thing is a bug, assert goes away with the
> -OO options. This needs to be fixed.

"assert FOO" is used in quite many of Numpy's test cases, and it appears 
Nose endorses using assert (and uses it in its own tests).

Should we go ahead and change all "assert FOO" in Numpy's tests to 
something like 'self.failUnless'?

Pauli Virtanen

More information about the Numpy-discussion mailing list