Fredrik Johansson wrote: > one could just write > > assert 1/0 raises ZeroDivisionError It's been pointed out that using assert for testing is not the best idea, since then you can't test that the code works properly with assertions turned off. -- Greg