Re: [Pyunit-interest] unittest.py patch
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2001-07-19 05:43:46
|
Fred L. Drake, Jr. wrote: > > I'd like to suggest the attached patch to unittest.py. > When running a test that fails to raise an expected exception (using > assertRaises()), the message is just the name of the exception, not > something that says the exception was expected but failed to occur. > The attached patch fixes this. Hi Fred, Well, that's the way it used to be! Then, prior to the Python 2.1 release, I received a proposed patch from Jeremy Hylton, which I applied in modified form to get the current message; the patch aimed to fix a perceived problem of clarity. I was happy with the more terse message, but others obviously weren't. In the light of the varied opinions on the matter, I suggest we keep the message as it is rather than change it again. -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Test your web apps with http://webunit.sourceforge.net/ |