Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
|
From: Guido v. R. <gu...@di...> - 2001-04-11 18:46:29
|
> Guido van Rossum writes: > > The problem is that many test suites (e.g. the Zope tests for > > PageTemplates :-) use assert statements instead of calls to fail*() / > > assert*() methods. Fred: > From the compatibility side, those methods need to be supported, > yes. Is there a reason they should raise AssertionError and not a > subclass of it? I think the later would help people learn that the > two are not the same thing at a conceptual level. The assert*() > methods should raise the new exception. > The framework can still *catch* the base AssertionError -- that's > different. The AssertionError is exactly right when using an assert > statement, it's just not being used properly there. ;-) I'm less > concerned about the PageTemplates tests than our DOM tests; that's a > somewhat larger collection of tests! This is fine, but since the framework still catches AssertionError, the gain is minimal. --Guido van Rossum (home page: http://www.python.org/~guido/) |