Exception inside loop wrongly failing doctest

Lie Ryan lie.1296 at gmail.com
Fri Jun 12 05:13:50 EDT 2009


Steven D'Aprano wrote:
> One of my doctests is failing, and I suspect a bug.
> 
> The test involves matching an exception in a for-loop. Here are two
> simplified versions of the test, both should pass but only the first does.
> 

tell me, what's the result of 1/0?



More information about the Python-list mailing list