1
0
forked from VimPlug/jedi

self redirection solved

This commit is contained in:
David Halter
2012-05-25 13:58:52 +02:00
parent 37f66f53c5
commit ffb233eac1
6 changed files with 56 additions and 32 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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 = \