From 324f1bdcfdd8e02f5ebb9d6ffbfb0057b772f666 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 3 Feb 2017 11:55:02 +0100 Subject: [PATCH] Remove ported tests. --- src/RestrictedPython/tests/security_in_syntax.py | 9 --------- 1 file changed, 9 deletions(-) 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