Skip to content

Commit

Permalink
revert deletion of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Sep 22, 2016
1 parent bd13f77 commit 0fe35a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
File renamed without changes.
12 changes: 10 additions & 2 deletions src/RestrictedPython/tests/security_in_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,22 @@ def reserved_names():
printed = ''


def bad_name():
def bad_name(): # ported
__ = 12


def bad_attr():
def bad_attr(): # ported
some_ob._some_attr = 15


def no_exec(): # ported
exec 'q = 1'


def no_yield(): # ported
yield 42


def check_getattr_in_lambda(arg=lambda _getattr=(lambda ob, name: name):
_getattr):
42
Expand Down

0 comments on commit 0fe35a1

Please sign in to comment.