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.


-- 
Steve
_______________________________________________
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/25ITIXVMKRJVAVLGJINCBYCOPHYQLU2W/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to