From 0e707d3824c67d08e604fbcfb8c78b6b72627187 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 3 Jan 2020 00:59:17 +0100 Subject: [PATCH] Remove the old definition tests The reason for this is that they haven't been used in years and don't really make sense, because the way we now resolve parentheses is by executing the result. IMO this was a good patch at the time, but doesn't make sense anymore. Let me know if you disagree ~dave. --- test/completion/definition.py | 68 ----------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 test/completion/definition.py diff --git a/test/completion/definition.py b/test/completion/definition.py deleted file mode 100644 index f896984e..00000000 --- a/test/completion/definition.py +++ /dev/null @@ -1,68 +0,0 @@ -""" -Fallback to callee definition when definition not found. -- https://github.com/davidhalter/jedi/issues/131 -- https://github.com/davidhalter/jedi/pull/149 -""" - -"""Parenthesis closed at next line.""" - -# Ignore these definitions for a little while, not sure if we really want them. -# python <= 2.5 - -#? isinstance -isinstance( -) - -#? isinstance -isinstance( -) - -#? isinstance -isinstance(None, -) - -#? isinstance -isinstance(None, -) - -"""Parenthesis closed at same line.""" - -# Note: len('isinstance(') == 11 -#? 11 isinstance -isinstance() - -# Note: len('isinstance(None,') == 16 -##? 16 isinstance -isinstance(None,) - -# Note: len('isinstance(None,') == 16 -##? 16 isinstance -isinstance(None, ) - -# Note: len('isinstance(None, ') == 17 -##? 17 isinstance -isinstance(None, ) - -# Note: len('isinstance( ') == 12 -##? 12 isinstance -isinstance( ) - -"""Unclosed parenthesis.""" - -#? isinstance -isinstance( - -def x(): pass # acts like EOF - -##? isinstance -isinstance( - -def x(): pass # acts like EOF - -#? isinstance -isinstance(None, - -def x(): pass # acts like EOF - -##? isinstance -isinstance(None,