[Checkins] SVN: RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax26.py confirm that a name check is done for 'except x as y'

David Glick davidglick at onenw.org
Thu Jul 8 13:42:34 EDT 2010


Log message for revision 114345:
  confirm that a name check is done for 'except x as y'

Changed:
  U   RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax26.py

-=-
Modified: RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax26.py
===================================================================
--- RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax26.py	2010-07-08 17:20:14 UTC (rev 114344)
+++ RestrictedPython/branches/davisagli-python27/src/RestrictedPython/tests/security_in_syntax26.py	2010-07-08 17:42:33 UTC (rev 114345)
@@ -8,3 +8,9 @@
 
 def relative_import_as_bad_name():
     from .x import y as _leading_underscore
+
+def except_as_bad_name():
+    try:
+        1/0
+    except Exception as _leading_underscore:
+        pass



More information about the checkins mailing list