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

Fred Drake cvs-admin at zope.org
Wed Nov 5 19:38:02 EST 2003


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

Modified Files:
      Tag: Zope-2_7-branch
	security_in_syntax.py 
Log Message:
Do not allow import-as to rebind "under names".


=== Zope/lib/python/RestrictedPython/tests/security_in_syntax.py 1.4.68.1 => 1.4.68.2 ===
--- Zope/lib/python/RestrictedPython/tests/security_in_syntax.py:1.4.68.1	Wed Nov  5 16:16:25 2003
+++ Zope/lib/python/RestrictedPython/tests/security_in_syntax.py	Wed Nov  5 19:38:00 2003
@@ -37,3 +37,6 @@
 def check_getattr_in_lambda(arg=lambda _getattr=(lambda ob, name: name):
                                        _getattr):
     42
+
+def import_as_bad_name():
+    import os as _leading_underscore




More information about the Zope-Checkins mailing list