On Wed, Aug 8, 2018 at 9:38 AM, Evgeni Burovski <evgeny.burovs...@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+nu...@gmail.com> > wrote: > >> You forget that we already have that feature in our testing layer, >> >> with np.testing.assert_raises(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.bar...@noaa.gov
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion