forked from VimPlug/jedi
self redirection solved
This commit is contained in:
@@ -10,6 +10,7 @@ class TestClass(object):
|
||||
self2.var_inst = first_param
|
||||
self2.second = second_param
|
||||
self2.first = first_param
|
||||
a = 3
|
||||
|
||||
def var_func(self):
|
||||
return 1
|
||||
|
||||
@@ -136,10 +136,8 @@ def args_func(arg1, *args):
|
||||
exe = args_func(1, "", list)
|
||||
#? int()
|
||||
exe[0]
|
||||
|
||||
#? tuple()
|
||||
exe[1].index
|
||||
|
||||
exe[1]
|
||||
#? list()
|
||||
exe[1][1]
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ sys.path.append('.')
|
||||
import functions
|
||||
from _compatibility import unicode, BytesIO
|
||||
|
||||
only_line = int(sys.argv[2]) if len(sys.argv) > 2 else None
|
||||
#functions.set_debug_function(functions.debug.print_to_stdout)
|
||||
|
||||
def run_completion_test(correct, source, line_nr, line):
|
||||
@@ -100,7 +101,7 @@ def completion_test(source):
|
||||
correct = None
|
||||
else:
|
||||
# reset the test, if only one specific test is wanted
|
||||
if len(sys.argv) > 2 and line_nr != int(sys.argv[2]):
|
||||
if only_line is not None and line_nr != only_line:
|
||||
correct = None
|
||||
import debug
|
||||
debug.debug_function = \
|
||||
|
||||
Reference in New Issue
Block a user