[Numpy-discussion] pytest, fixture and parametrize (original) (raw)
Chris Barker chris.barker at noaa.gov
Wed Aug 8 16:15:51 EDT 2018
- Previous message (by thread): [Numpy-discussion] pytest, fixture and parametrize
- Next message (by thread): [Numpy-discussion] pytest, fixture and parametrize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Aug 8, 2018 at 9:38 AM, Evgeni Burovski <evgeny.burovskiy at gmail.com> wrote:
Stdlib unittest supports self.assertRaises context manager from python 3.1
but that requires using unittest :-)
On Wed, Aug 8, 2018, 7:30 PM Eric Wieser <wieser.eric+numpy at gmail.com>
wrote:
You forget that we already have that feature in our testing layer,
with np.testing.assertraises(AnException): pass fair enough -- I wouldn't re-write that now, but as its there already, it may make sense to use it.
Perhaps we need a doc that lays out the prefered testing utilities.
Worthy of a NEP? Or is just a README or something in the code base.
Personally, I think a commitment to pytest is the best way to go -- but there are a lot of legacy tests, so there will be a jumble.
-CHB
--
Christopher Barker, Ph.D. Oceanographer
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180808/00e4f3bd/attachment.html>
- Previous message (by thread): [Numpy-discussion] pytest, fixture and parametrize
- Next message (by thread): [Numpy-discussion] pytest, fixture and parametrize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]