On 10/23/20 4:50 PM, Steven D'Aprano wrote:
On Fri, Oct 23, 2020 at 01:06:36PM -0700, Ethan Furman wrote:

I think having a *fail* keyword for unit testing
would be great.

Luckily, we already have it:

     assert False

I take it you don't run your unit tests under -O :-)

`raise Exception` works fine for me.

Good point.  I should start doing that.

--
~Ethan~
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IVOVHZKZAPCQO2RLYNTBHQPO2IMXHAUI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to