[Zope-CMF] Failing CMFCore HEAD tests on Win2k
Gregoire Weber
gregweb at gmx.ch
Wed Jun 30 04:59:46 EDT 2004
Hi,
1. In line 129 of base/testcase.py the check
if sys.platform == 'nt':
should be
if sys.platform == 'win32':
IMHO. Shall I change that in the CVS?
2. After the above change the below tests fail.
Do they fail under *nix also? Some of them seem to be Win32 specific.
But the others?
Gregoire
....................................................................................................EE...E....
.............................FFFF.........................................E:\user\greg\data\Zope\inst\cmf_dev\
Products\CMFCore\utils.py:188: DeprecationWarning: __call__() and view() methods using _getViewFor() as well a
s _getViewFor() itself are deprecated and will be removed in CMF 1.6. Bypass these methods by defining '(Defau
lt)' and 'view' Method Aliases.
DeprecationWarning)
.............................................................
======================================================================
ERROR: test_AddNewMethod (test_DirectoryView.DebugModeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_DirectoryView.py", line 179, in test_AddNewMethod
self.assertEqual(self.ob.fake_skin.test2(),'test2')
AttributeError: test2
======================================================================
ERROR: test_DeleteAddEditMethod (test_DirectoryView.DebugModeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_DirectoryView.py", line 216, in test_DeleteAddEditMethod
self.assertEqual(self.ob.fake_skin.test2(),'test2.2')
AttributeError: test2
======================================================================
ERROR: test_NewFolder (test_DirectoryView.DebugModeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_DirectoryView.py", line 192, in test_NewFolder
self.failUnless(isinstance(self.ob.fake_skin.test3,DirectoryViewSurrogate))
AttributeError: test3
======================================================================
FAIL: Test deleting, then adding, then editing a .security file
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_FSSecurity.py", line 146, in test_DelAddEditPRM
self._checkSettings(self.ob.fake_skin.test5,'View',1,['Manager'])
File "test_FSSecurity.py", line 36, in _checkSettings
self.assertEqual((acquire,expected),(acquired,got))
File "D:\Program Files\zope\zope27\bin\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: (1, {'Manager': 1}) != (False, {'Manager': 1, 'Anonymous': 1})
======================================================================
FAIL: Test adding of a .security
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_FSSecurity.py", line 97, in test_addPRM
self._checkSettings(self.ob.fake_skin.test5,'View',1,['Manager'])
File "test_FSSecurity.py", line 36, in _checkSettings
self.assertEqual((acquire,expected),(acquired,got))
File "D:\Program Files\zope\zope27\bin\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: (1, {'Manager': 1}) != (True, {})
======================================================================
FAIL: Test deleting of a .security
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_FSSecurity.py", line 104, in test_delPRM
self._checkSettings(self.ob.fake_skin.test5,'View',1,['Manager'])
File "test_FSSecurity.py", line 36, in _checkSettings
self.assertEqual((acquire,expected),(acquired,got))
File "D:\Program Files\zope\zope27\bin\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: (1, {'Manager': 1}) != (True, {})
======================================================================
FAIL: Test editing a .security
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_FSSecurity.py", line 124, in test_editPRM
self._checkSettings(self.ob.fake_skin.test5,'View',1,['Manager'])
File "test_FSSecurity.py", line 36, in _checkSettings
self.assertEqual((acquire,expected),(acquired,got))
File "D:\Program Files\zope\zope27\bin\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: (1, {'Manager': 1}) != (False, {'Manager': 1, 'Anonymous': 1})
----------------------------------------------------------------------
Ran 245 tests in 6.516s
FAILED (failures=4, errors=3)
======================================================================
OVERALL FAILED (total failures=4, total errors=3)
More information about the Zope-CMF
mailing list