[Checkins] SVN: RestrictedPython/branches/davisagli-python27/ confirm that multi-context with statements still check for valid names

David Glick davidglick at onenw.org
Thu Jul 8 01:08:11 EDT 2010


Log message for revision 114298:
  confirm that multi-context with statements still check for valid names

Changed:
  U   RestrictedPython/branches/davisagli-python27/CHANGES.txt
  U   RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax27.py

-=-
Modified: RestrictedPython/branches/davisagli-python27/CHANGES.txt
===================================================================
--- RestrictedPython/branches/davisagli-python27/CHANGES.txt	2010-07-08 04:40:00 UTC (rev 114297)
+++ RestrictedPython/branches/davisagli-python27/CHANGES.txt	2010-07-08 05:08:11 UTC (rev 114298)
@@ -4,6 +4,9 @@
 3.6.0 (unreleased)
 ------------------
 
+- Added test for name check when assigning an alias using multiple-context with
+  statements in Python 2.7.
+
 - Added tests for protection of the iterators for dict and set comprehensions
   in Python 2.7.
 

Modified: RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax27.py
===================================================================
--- RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax27.py	2010-07-08 04:40:00 UTC (rev 114297)
+++ RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax27.py	2010-07-08 05:08:11 UTC (rev 114298)
@@ -7,3 +7,7 @@
 
 def set_comp_bad_name():
     {y for _restricted_name in x}
+
+def compound_with_bad_name():
+    with a as b, c as _restricted_name:
+        pass



More information about the checkins mailing list