[Numpy-discussion] pytest, fixture and parametrize

Ralf Gommers ralf.gommers at gmail.com
Wed Aug 8 11:43:35 EDT 2018


On Wed, Aug 8, 2018 at 8:27 AM, Hameer Abbasi <einstein.edison at gmail.com>
wrote:

> > On 8. Aug 2018, at 17:23, Charles R Harris <charlesr.harris at gmail.com>
> wrote:
> >
> > Hi All,
> >
> > I'm writing some tests and would like to come to a common understanding
> as to whether we are should use pytest fixtures and parametrized classes
> and functions. The immediate problem is testing over all types that should
> be supported, which something we should to much more of and is most easily
> achieved using one of those pytest tools. The advantage is code clarity and
> more informative error messages, the disadvantage is being dependent on
> pytest as unittest does not support that functionality.
> >
> > Thoughts?
> >
> > Chuck
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at python.org
> > https://mail.python.org/mailman/listinfo/numpy-discussion
>
> Hi all!
>
> I think it mainly depends on how likely we are to move away from Pytest.
> And I’m assuming not very likely. Anything likely to replace it (which
> won’t happen short-term in any case) will already have something similar,
> IMO.
>
> So my vote is we go ahead and use them.
>

I agree. There's no other viable test framework at the moment, so spending
effort reinventing pytest features is a waste of time right now.

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180808/3a9241b1/attachment-0001.html>


More information about the NumPy-Discussion mailing list