[SciPy-Dev] [GSoC 2017] Nose to Pytest Migration - conclusions from previous thread

Ralf Gommers ralf.gommers at gmail.com
Mon Mar 13 03:59:58 EDT 2017


On Mon, Mar 13, 2017 at 3:56 AM, Robert Kern <robert.kern at gmail.com> wrote:

> On Sun, Mar 12, 2017 at 12:19 AM, Karan Desai <karandesai281196 at gmail.com>
> wrote:
>
> >
> > Plain assert keyword statements.
>
> Just a note: numpy's test suite, at least, must not use `assert`
> statements. numpy's test suite must be runnable under `python -O`. numpy
> does some docstring manipulation that could fail in principle under those
> conditions (i.e. it did fail at one point until we fixed it, so now we have
> to ensure that it doesn't regress). scipy might have the same issue (e.g.
> `scipy.special` ufuncs and `scipy.stats` distribution objects), but I
> forget if we've made that a policy there too.
>

Yes, that's the policy - no plain assert statements anywhere.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20170313/47429571/attachment.html>


More information about the SciPy-Dev mailing list