[Python-ideas] Please consider adding context manager versions of setUp/tearDown to unittest.TestCase

Chris Barker chris.barker at noaa.gov
Tue Aug 22 20:24:49 EDT 2017


On Tue, Aug 22, 2017 at 5:19 PM, Chris Barker <chris.barker at noaa.gov> wrote:

> anyway, that's enough ranting.....
>

Got carried away with the ranting, and didn't flesh out my point.

My point is that unittest is a very static, not very pythonic framework --
if you are productive with it, great, but I don't think it's worth trying
to add more pythonic niceties to. Chances are pytest (Or nose2?) may
already have them, or, if not, the simpler structure of pytest tests make
them easier to write yourself.

-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/python-ideas/attachments/20170822/23ecf13c/attachment.html>


More information about the Python-ideas mailing list