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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/25ITIXVMKRJVAVLGJINCBYCOPHYQLU2W/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to