[Zope-Coders] Re: reporting failures loading tests from test.py
Tres Seaver
tseaver at zope.com
Mon Mar 15 16:29:13 EST 2004
Jeremy Hylton wrote:
> Tres has been rightly complaining that errors that prevent a test suite
> from even loading, e.g. a top-level import error in a test module, do
> not result in a test failure. test.py prints an error message at the
> start, but it can still finish with a report that says all tests passed.
>
> I've checked in a change in Packages/Zope2+3/test.py that reports a
> single test error for each failure to load a test module. I'd like to
> check it in on the Zope 2 and Zope 3 heads, but it will cause some a
> test failure.
>
> On Zope3, we've got at least the following failure:
>
> Traceback (most recent call last):
> File "test.py", line 528, in get_suite
> mod = package_import(modname)
> File "test.py", line 520, in package_import
> mod = __import__(modname)
> File
> "/tmp/autotestYwoOE1/Zope3/src/zope/publisher/tests/test_browserrequest.py", line 33, in ?
> from zope.publisher.tests.test_http import HTTPTests
> File
> "/tmp/autotestYwoOE1/Zope3/src/zope/publisher/tests/test_http.py", line
> 21, in ?
> from zope.app.services.tests.placefulsetup import PlacefulSetup
> ImportError: No module named services.tests.placefulsetup
>
> This is a heads up, so that whoever is responsible can fix the test
> today. I'll check in the changes later this afternoon. It will
> generate output like this:
Excellent!
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope-Coders
mailing list