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

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