diff --git a/src/RestrictedPython/tests/security_in_syntax.py b/src/RestrictedPython/tests/security_in_syntax.py index d7f905c..08bb41a 100644 --- a/src/RestrictedPython/tests/security_in_syntax.py +++ b/src/RestrictedPython/tests/security_in_syntax.py @@ -3,15 +3,6 @@ # Each function in this module is compiled using compile_restricted(). -def except_using_bad_name(): - try: - foo - except NameError, _leading_underscore: - # The name of choice (say, _write) is now assigned to an exception - # object. Hard to exploit, but conceivable. - pass - - def keyword_arg_with_bad_name(): def f(okname=1, __badname=2): pass