[Zope-dev] Zope 2 trunk OFS tests failing

Florent Guillaume fg at nuxeo.com
Tue Oct 4 06:38:23 EDT 2005


The OFS.testObjectManager tests are failing when run in isolation on  
the Zope 2 trunk (also on the 2.8 branch). Any idea? I'll look at it  
anyway, but if someone's seen this already...

bin/zopectl test -v --libdir lib/python --dir lib/python/OFS  
testObjectManager
....E........F.....
======================================================================
ERROR: test_delObject_exception_debug_manager  
(OFS.tests.testObjectManager.ObjectManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Users/fguillaume/zope/zope2/lib/python/OFS/tests/ 
testObjectManager.py", line 290, in  
test_delObject_exception_debug_manager
     om._delObject(ob.getId())
   File "/Users/fguillaume/zope/zope2/lib/python/OFS/ 
ObjectManager.py", line 350, in _delObject
     if not getSecurityManager().getUser().has_role('Manager'):
AttributeError: 'NoneType' object has no attribute 'has_role'

======================================================================
FAIL: test_setObject_set_owner_with_emergency_user  
(OFS.tests.testObjectManager.ObjectManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Users/fguillaume/zope/zope2/lib/python/OFS/tests/ 
testObjectManager.py", line 104, in  
test_setObject_set_owner_with_emergency_user
     , om._setObject, 'should_fail', si )
   File "/usr/local/lib/python2.3/unittest.py", line 295, in  
failUnlessRaises
     raise self.failureException, excName
AssertionError: EmergencyUserCannotOwn

----------------------------------------------------------------------
Ran 19 tests in 0.077s

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the Zope-Dev mailing list