summaryrefslogtreecommitdiff
path: root/test/input/func_bad_context_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/func_bad_context_manager.py')
-rw-r--r--test/input/func_bad_context_manager.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/input/func_bad_context_manager.py b/test/input/func_bad_context_manager.py
index 620190d..2439c47 100644
--- a/test/input/func_bad_context_manager.py
+++ b/test/input/func_bad_context_manager.py
@@ -49,5 +49,14 @@ class SecondBadContextManager(object):
def __exit__(self, exc_type, value, tb, stack):
pass
+class ThirdBadContextManager(object):
+ """ Too many arguments and variable arguments """
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, value, tb, stack, *args):
+ pass
+