[Zope-dev] Zope 2 trunk OFS tests failing

2005-10-04 Thread Florent Guillaume
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

EF.
==
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 RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2 trunk OFS tests failing

2005-10-04 Thread Jens Vagelpohl
Both those tests point to a wrong user running them, most likely due  
to some tests switching users and then not cleaning up properly.


jens


On 4 Oct 2005, at 11:38, Florent Guillaume wrote:

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

EF.
==
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 RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )