[ZODB-Dev] 3.10.0b2 seems to break FunctionalTestSetup?

Jim Fulton jim at zope.com
Wed Jul 14 10:12:24 EDT 2010


On Wed, Jul 14, 2010 at 10:04 AM, Guilherme Salgado
<salgado at canonical.com> wrote:
> Hi there,
>
> I've just tried running the tests on a freshly built zope.app.apidoc
> tree and got the following error, while all tests pass fine when using
> 3.9.5.
>
>        Error in test testMenu
>        (zope.app.apidoc.zcmlmodule.tests.ZCMLModuleTests)
>        Traceback (most recent call last):
>          File "/usr/lib/python2.6/unittest.py", line 270, in run
>            self.setUp()
>          File
>        "/home/salgado/.buildout/eggs/zope.app.testing-3.7.5-py2.6.egg/zope/app/testing/functional.py", line 391, in setUp
>            FunctionalTestSetup().setUp()
>          File
>        "/home/salgado/.buildout/eggs/zope.app.testing-3.7.5-py2.6.egg/zope/app/testing/functional.py", line 288, in setUp
>            for name in self._database_names
>          File
>        "/home/salgado/.buildout/eggs/zope.app.appsetup-3.14.0-py2.6.egg/zope/app/appsetup/appsetup.py", line 213, in multi_database
>            db = factory.open()
>          File
>        "/home/salgado/.buildout/eggs/zope.app.testing-3.7.5-py2.6.egg/zope/app/testing/functional.py", line 160, in open
>            return DB(self.storage, database_name=self.name)
>          File
>        "/home/salgado/.buildout/eggs/ZODB3-3.10.0b2-py2.6-linux-x86_64.egg/ZODB/DB.py", line 454, in __init__
>            temp_storage.load(z64, '')
>          File
>        "/home/salgado/.buildout/eggs/ZODB3-3.10.0b2-py2.6-linux-x86_64.egg/ZODB/DemoStorage.py", line 158, in load
>            return self.base.load(oid, version)
>          File
>        "/home/salgado/.buildout/eggs/ZODB3-3.10.0b2-py2.6-linux-x86_64.egg/ZODB/DemoStorage.py", line 156, in load
>            return self.changes.load(oid, version)
>          File
>        "/home/salgado/.buildout/eggs/ZODB3-3.10.0b2-py2.6-linux-x86_64.egg/ZODB/utils.py", line 252, in __call__
>            precondition.__doc__.strip())
>        AssertionError: ('Failed precondition: ', 'The storage is open')
>
> I don't have time/knowledge to debug this further, but I thought I
> should let you know anyway.

Could you at least provide instructions for reproducing it. Like:

- use this buildout
- run this command

Jim


-- 
Jim Fulton


More information about the ZODB-Dev mailing list