[Zope3-dev] Re: zope.security problems related to Python 2.5
update? (Was: Removed zope.security 3.4b4)
Baiju M
mbaiju at zeomega.com
Thu Aug 16 08:06:11 EDT 2007
Was this problem related to Python 2.5 update ?
I checked Nikhil's (GSoC student) commit (r78089), but cann't find any issue
with that changes.
Index: CHANGES.txt
===================================================================
--- CHANGES.txt (revision 78088)
+++ CHANGES.txt (revision 78089)
@@ -1,5 +1,8 @@
zope.security package changelog
===============================
+Next release
+------------
+- zope.security now works on Python 2.5
3.4.0b2 - 2007/06/15
--------------------
Index: src/zope/security/checker.py
===================================================================
--- src/zope/security/checker.py (revision 78088)
+++ src/zope/security/checker.py (revision 78089)
@@ -701,6 +701,7 @@
type(iter([])): _iteratorChecker, # Same types in Python 2.2.1,
type(iter(())): _iteratorChecker, # different in Python 2.3.
type(iter({})): _iteratorChecker,
+ type(iter(set())): _iteratorChecker,
type({}.iteritems()): _iteratorChecker,
type({}.iterkeys()): _iteratorChecker,
type({}.itervalues()): _iteratorChecker,
Index: src/zope/security/untrustedpython/tests.py
===================================================================
--- src/zope/security/untrustedpython/tests.py (revision 78088)
+++ src/zope/security/untrustedpython/tests.py (revision 78089)
@@ -16,13 +16,18 @@
$Id$
"""
import unittest
-from zope.testing import doctestunit
+import re
+from zope.testing import doctestunit,renormalizing
def test_suite():
+ checker = renormalizing.RENormalizing([
+ (re.compile(r"'ImmutableModule' object"),
+ r'object'),
+ ])
return unittest.TestSuite((
doctestunit.DocFileSuite('builtins.txt',
'rcompile.txt',
- 'interpreter.txt',
+ 'interpreter.txt',checker=checker
),
))
Regards,
Baiju M
More information about the Zope3-dev
mailing list