mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-10 19:49:11 +08:00
tests added / error catch
This commit is contained in:
1 parent
1ea2954c0e
commit
3780e44603
6 files changed
+36
-9
No files matched your search
+2
-2
@@ -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