[Python-Dev] Re: test_support.py
Guido van Rossum
Fri, 19 Jan 2001 13:11:21 -0500
> > Proposal:
> > (1) change verify() to raise TestFailed;
> > (2) change test_unicode.py to catch TestFailed instead.
> 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/)