[Zope-Checkins] CVS: Zope2 - testRestrictions.py:1.1.2.2
shane@digicool.com
shane@digicool.com
Tue, 24 Apr 2001 22:51:32 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/RestrictedPython/tests
In directory korak:/tmp/cvs-serv24939/tests
Modified Files:
Tag: RestrictedPythonBranch
testRestrictions.py
Log Message:
Fixed code and tests so tests pass again. (Please run tests. :-) )
--- Updated File testRestrictions.py in package Zope2 --
--- testRestrictions.py 2001/04/24 22:47:18 1.1.2.1
+++ testRestrictions.py 2001/04/25 02:51:31 1.1.2.2
@@ -163,7 +163,8 @@
class RestrictionTests(unittest.TestCase):
def execFunc(self, name, *args, **kw):
func = rmodule[name]
- func.func_globals.update({'_guard_init': TestGuard,
+ func.func_globals.update({'_read_guard_': TestGuard,
+ '_write_guard_': TestGuard,
'_print_target_class': PrintCollector})
return func(*args, **kw)