Skip to content

Commit

Permalink
confirm that a name check is done for 'except x as y'
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Jul 8, 2010
1 parent 95802b5 commit 99d08ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/RestrictedPython/tests/security_in_syntax26.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ def with_as_bad_name():

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

0 comments on commit 99d08ba

Please sign in to comment.