[Zope-Checkins] CVS: Zope/lib/python/RestrictedPython/tests - security_in_syntax.py:1.4.68.1

Fred Drake cvs-admin at zope.org
Wed Nov 5 16:16:26 EST 2003


Update of /cvs-repository/Zope/lib/python/RestrictedPython/tests
In directory cvs.zope.org:/tmp/cvs-serv2738/tests

Modified Files:
      Tag: Zope-2_7-branch
	security_in_syntax.py 
Log Message:
Add more tests that check current behavior.


=== Zope/lib/python/RestrictedPython/tests/security_in_syntax.py 1.4 => 1.4.68.1 ===
--- Zope/lib/python/RestrictedPython/tests/security_in_syntax.py:1.4	Wed Aug 14 17:44:31 2002
+++ Zope/lib/python/RestrictedPython/tests/security_in_syntax.py	Wed Nov  5 16:16:25 2003
@@ -30,3 +30,10 @@
 
 def no_exec():
     exec 'q = 1'
+
+def no_yield():
+    yield 42
+
+def check_getattr_in_lambda(arg=lambda _getattr=(lambda ob, name: name):
+                                       _getattr):
+    42




More information about the Zope-Checkins mailing list