Re: all_tests errors

Kapil Thangavelu <[email protected]> Wed, 03 Dec 2003 00:39:45 -0800
Newsgroups gmane.comp.web.zope.plone.collective.ticle
Message-ID <BBF2E151.923F%[email protected]>
Just fixed these and some other things in cvs, all unit tests pass.

Commit log message
 - fixed some bootstrapping and naming issues that were causing unit tests
   to fail
 - fixed several class methods that were missing self
 - removed objectstorage iface declaration on relation storage as they are
   not interchangable and the service lookup infrastructure couldn=B9t
   distinguish between them
 - fixed unit tests to insure shutdown zodb if bootstrap failure.

-kapil

On 12/2/03 10:59 PM, "Florian Konnertz" <[email protected]> wrote:

> Hi Simon, hi all
>=20
> I continued with ticle today, ran the tests and got many errors, see
> below, maybe you have already an idea whats wrong - i havent
> investigated further.
>=20
> In my remembering already all tests were passed the last time i did it
> (before the last additions to cvs) but that was two or three weeks
> ago... (i moved into a new apartment the last time, now i am ready and
> can continue with ticle :)
>=20
>=20
> so far,
> tia for any help.
>=20
> flo
>=20
>=20
>=20
> root@groovesurfer tests # python all_tests.py
> ....EEEEEE......EEE....
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testHeavyLoad (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 41,
> in setUp
>    self.cr =3D TicleCore('__')
>  File "/usr/lib/python2.2/ticle/core.py", line 39, in __init__
>    ServiceHub.__init__(self, '___', TicleCore.configuration)
>  File "/usr/lib/python2.2/ticle/services.py", line 23, in __init__
>    self.__dict__[item] =3D kw[item](item, self)
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 39, in
> __init__
>    self._initialize_data()
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 44, in
> _initialize_data
>    uidman =3D self.servicehub.getUIDManager()
> AttributeError: servicehub
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testImplements (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 37,
> in setUp
>    self.db =3D ZODB.DB(FileStorage('test.fs'))
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/FileStorage.py", line
> 232, in __init__
>    self._lock_file =3D LockFile(file_name + '.lock')
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 62,
> in __init__
>    lock_file(self._fp)
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
>    fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testRelationsStorage
> (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 37,
> in setUp
>    self.db =3D ZODB.DB(FileStorage('test.fs'))
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/FileStorage.py", line
> 232, in __init__
>    self._lock_file =3D LockFile(file_name + '.lock')
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 62,
> in __init__
>    lock_file(self._fp)
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
>    fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testRemoval (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 37,
> in setUp
>    self.db =3D ZODB.DB(FileStorage('test.fs'))
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/FileStorage.py", line
> 232, in __init__
>    self._lock_file =3D LockFile(file_name + '.lock')
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 62,
> in __init__
>    lock_file(self._fp)
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
>    fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testRetrieval (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 37,
> in setUp
>    self.db =3D ZODB.DB(FileStorage('test.fs'))
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/FileStorage.py", line
> 232, in __init__
>    self._lock_file =3D LockFile(file_name + '.lock')
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 62,
> in __init__
>    lock_file(self._fp)
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
>    fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testStore (ticle.tests.testObjectStorage.TestObjectStorage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testObjectStorage.py", line 37,
> in setUp
>    self.db =3D ZODB.DB(FileStorage('test.fs'))
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/FileStorage.py", line
> 232, in __init__
>    self._lock_file =3D LockFile(file_name + '.lock')
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 62,
> in __init__
>    lock_file(self._fp)
>  File "/usr/local/Zope-2.7cvs/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
>    fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testAddTriple (ticle.tests.testRelationsManager.TestRelationsManag=
er)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testRelationsManager.py", line
> 20, in setUp
>    self.core =3D TicleCore('__dummy__')
>  File "/usr/lib/python2.2/ticle/core.py", line 39, in __init__
>    ServiceHub.__init__(self, '___', TicleCore.configuration)
>  File "/usr/lib/python2.2/ticle/services.py", line 23, in __init__
>    self.__dict__[item] =3D kw[item](item, self)
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 39, in
> __init__
>    self._initialize_data()
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 44, in
> _initialize_data
>    uidman =3D self.servicehub.getUIDManager()
> AttributeError: servicehub
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testExistsTriple
> (ticle.tests.testRelationsManager.TestRelationsManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testRelationsManager.py", line
> 20, in setUp
>    self.core =3D TicleCore('__dummy__')
>  File "/usr/lib/python2.2/ticle/core.py", line 39, in __init__
>    ServiceHub.__init__(self, '___', TicleCore.configuration)
>  File "/usr/lib/python2.2/ticle/services.py", line 23, in __init__
>    self.__dict__[item] =3D kw[item](item, self)
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 39, in
> __init__
>    self._initialize_data()
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 44, in
> _initialize_data
>    uidman =3D self.servicehub.getUIDManager()
> AttributeError: servicehub
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ERROR: testImplements
> (ticle.tests.testRelationsManager.TestRelationsManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python2.2/ticle/tests/testRelationsManager.py", line
> 20, in setUp
>    self.core =3D TicleCore('__dummy__')
>  File "/usr/lib/python2.2/ticle/core.py", line 39, in __init__
>    ServiceHub.__init__(self, '___', TicleCore.configuration)
>  File "/usr/lib/python2.2/ticle/services.py", line 23, in __init__
>    self.__dict__[item] =3D kw[item](item, self)
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 39, in
> __init__
>    self._initialize_data()
>  File "/usr/lib/python2.2/ticle/constraintmanager.py", line 44, in
> _initialize_data
>    uidman =3D self.servicehub.getUIDManager()
> AttributeError: servicehub
>=20
> ----------------------------------------------------------------------
> Ran 23 tests in 0.025s
>=20
> FAILED (errors=3D9)
>=20



-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8