Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Fred L. D. Jr. <fd...@ac...> - 2001-04-11 18:37:12
|
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. 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! -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Digital Creations |