[Zope-dev] Re: Test failure in zope.component on 2.10 branch

Paul Winkler slinkp at gmail.com
Mon Apr 28 23:22:53 EDT 2008


On Mon, Apr 28, 2008 at 05:26:36PM -0400, Benji York wrote:
> On Mon, Apr 28, 2008 at 5:09 PM, Paul Winkler <slinkp at gmail.com> wrote:
> >  The test was failing on those, because it expects "OK" to be the last
> >  thing printed by the subprocess.
> 
> I don't have any idea what you're talking about, so ignore me if I'm
> totally off-base... but: shouldn't the thing that is running the tests
> be looking for exit code instead of sniffing for particular output on
> stdout?

Good question. The subprocess that's run is
lib/python/zope/component/standalonetests.py
which runs a typical unittest.main().
Does that not exit 1 on failures, on all platforms?
(What happens on windows?)

btw, the calling code (zope/component/tests.py) was made somewhat more
robust between 2.10 and 2.11, but it's still sniffing stdout.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope-Dev mailing list