[Numpy-discussion] pytest, fixture and parametrize (original) (raw)

Hameer Abbasi einstein.edison at gmail.com
Wed Aug 8 11:27:05 EDT 2018


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.

Hameer Abbasi



More information about the NumPy-Discussion mailing list