mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 19:07:13 +08:00
tests added / error catch
This commit is contained in:
@@ -35,7 +35,7 @@ def completion_test(source):
|
||||
completions = functions.complete(source, line_nr, 999,
|
||||
completion_test_dir)
|
||||
except:
|
||||
print 'test: %s' % line
|
||||
print 'test @%s: %s' % (line_nr, line)
|
||||
print traceback.format_exc()
|
||||
fails += 1
|
||||
else:
|
||||
@@ -43,7 +43,7 @@ def completion_test(source):
|
||||
# TODO remove set! duplicates should not be normal
|
||||
comp_str = str(sorted(set([str(c) for c in completions])))
|
||||
if comp_str != correct:
|
||||
print 'Solution on %s not correct, received %s, wanted %s'\
|
||||
print 'Solution on @%s not correct, received %s, wanted %s'\
|
||||
% (line_nr, comp_str, correct)
|
||||
#print [(c.name, c.name.parent) for c in completions]
|
||||
fails += 1
|
||||
|
||||
Reference in New Issue
Block a user