[Python-Dev] Re: test_support.py

Guido van Rossum guido@digicool.com
Fri, 19 Jan 2001 13:11:21 -0500


> > Proposal:
> > 
> > (1) change verify() to raise TestFailed;
> > 
> > (2) change test_unicode.py to catch TestFailed instead.
> 
> +1
> 
> Why not simply make TestFailed a subclass of AssertionError ?
> Then we wouldn't have to fear about breaking test code...

No, I'd rather see the two separated.  There can be assert statements
in the modules we're testing, and I'd prefer not to see those caught
by test code that is trying to catch TestFailed.

I'll check this in momentarily.

--Guido van Rossum (home page: http://www.python.org/~guido/)