[Zope-Coders] Unit testing issues

Matthew T. Kromer matt@zope.com
Fri, 09 Nov 2001 11:44:39 -0500


Jeremy Hylton wrote:

>>>>>>"TS" == Tres Seaver <tseaver@zope.com> writes:
>>>>>>
>
>  TS> Jeremy, do you have a clue where the ZEO errors are coming from?
>  TS> This is with Python 2.1.1, against the head of the
>  TS> 'zeo-1_0-branch'.
>
>I don't have a clue.  I can confirm that the errors occur, but only if
>the entire test suite is run.  If I run ZEO by itself or just with the
>StandaloneZODB tests, it is successful.  I'll dig in and see what I
>can find.
>
>Jeremy
>

I have a similar set of errors with the Session unittests -- they work 
fine when run individually, but blow up with testrunner.

Testrunner is running some test which is doing something to Zope.app() I 
think which is screwing me up when I'm importing Zope.  I haven't yet 
figured out a good way of isolating that; I was considering looking to 
see if maybe there ought to be some support for closing down the root 
database and reopening it, but that feels like some kind of overkill...