[ZCM] [ZC] 1210/ 1 Request "ZopeSecurityPolicy implementations
(C/Python) differ"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Jan 28 14:21:37 EST 2004
Issue #1210 Update (Request) "ZopeSecurityPolicy implementations (C/Python) differ"
Status Pending, Zope/bug medium
To followup, visit:
http://zope.org/Collectors/Zope/1210
==============================================================
= Request - Entry #1 by shh on Jan 28, 2004 2:21 pm
I have added some tests to AccessControl/tests/testUserFolder.py of Zope-2_6-branch. Curiously, one of these tests fails when I set ZOPE_SECURITY_POLICY=PYTHON. This indicates a difference in the C/Python implementations of ZopeSecurityPolicy. Note that I am in fact not sure whether this test is supposed to pass or fail with the new version of AccessControl (it passed until recently). I just noticed that it fails in the Python version but not the C version.
$ python2.1 utilities/testrunner.py -qa
...
----------------------------------------------------------------------
Ran 1865 tests in 109.871s
$ export ZOPE_SECURITY_POLICY=PYTHON
$ python2.1 utilities/testrunner.py -qa
...
======================================================================
FAIL: testNotValidateWithoutRoles (testUserFolder.UserFolderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testUserFolder.py", line 143, in testNotValidateWithoutRoles
File "/var/tmp/python21-root/usr/local/python2.1/lib/python2.1/unittest.py", line 273, in failUnlessEqual
raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: user1 != None
----------------------------------------------------------------------
Ran 1865 tests in 113.321s
FAILED (failures=1)
======================================================================
OVERALL FAILED (total failures=1)
==============================================================
More information about the Zope-Collector-Monitor
mailing list