← Back to team overview

launchpad-dev team mailing list archive

Re: zope testrunner errors

 

On Mon, Oct 25, 2010 at 05:51:27AM +1300, Robert Collins wrote:
> On Sun, Oct 24, 2010 at 9:01 AM, Bryce Harrington <bryce@xxxxxxxxxxxxx> wrote:
> > Anyone recognize this error?
> >  File "/home/bryce/launchpad/lp-branches/lp-617699-api/lib/canonical/testing/profiled.py", line 29, in profiled_func
> >    return func(cls, *args, **kw)
> >  File "/home/bryce/launchpad/lp-branches/lp-617699-api/lib/canonical/testing/layers.py", line 731, in testSetUp
> >    cls._db_fixture.setUp()
> > AttributeError: 'NoneType' object has no attribute 'setUp'
> 
> One of the layers we've torn down has torn down the db fixture object,
> it shouldn't have. Its possibly/probably tied into my workaround for
> FunctionalLayer et al not being tear-downable.
> 
> We could either put a priority on fixing FunctionalLayer etc to be
> teardownable, migrate from layers more quickly, or put a hack (with a
> logged warning please to resetUp just-in-time).

I'm still getting errors when trying to run tests.  I've updated to
latest db-devel, done rocketfuel-get, and apt-get upgraded to latest
bits, but I'm getting storm version errors:

porlock:~/launchpad/lp-branches/lp-617695-linkui$ ./bin/test -t
buglinktarget
Traceback (most recent call last):
  File "./bin/test", line 73, in <module>
    assert os.environ['STORM_CEXTENSIONS'] == '1'
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'STORM_CEXTENSIONS'

What happened and how can I fix it?

Bryce



Follow ups

References