[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests/public_module - __init__.py:1.3
Shane Hathaway
shane@cvs.zope.org
Wed, 21 Aug 2002 16:01:38 -0400
Update of /cvs-repository/Zope/lib/python/AccessControl/tests/public_module
In directory cvs.zope.org:/tmp/cvs-serv4834/public_module
Modified Files:
__init__.py
Log Message:
Modified the ModuleSecurityInfo tests to exercise the former ZopeSecurityPolicy
bug. Before the fix, ZopeSecurityPolicy saw the aq_base global and thought
the module object was wrapped, leading to unexpected behavior.
=== Zope/lib/python/AccessControl/tests/public_module/__init__.py 1.2 => 1.3 ===
--- Zope/lib/python/AccessControl/tests/public_module/__init__.py:1.2 Fri Jan 11 12:14:29 2002
+++ Zope/lib/python/AccessControl/tests/public_module/__init__.py Wed Aug 21 16:01:37 2002
@@ -1,4 +1,6 @@
# test module, public
+from Acquisition import aq_base # Foil the old ZopeSecurityPolicy
+
def pub():
pass