Show More
@@ -292,7 +292,10 b' def test_jedi():' | |||||
292 | completions = set(ip.Completer.completions(s, l)) |
|
292 | completions = set(ip.Completer.completions(s, l)) | |
293 | assert_not_in(Completion(l, l, comp), completions, reason) |
|
293 | assert_not_in(Completion(l, l, comp), completions, reason) | |
294 |
|
294 | |||
295 | yield _test_complete, 'jedi >0.9 should complete and not crash', 'a=1;a.', 'real' |
|
295 | import jedi | |
|
296 | jedi_version = tuple(int(i) for i in jedi.__version__.split('.')[:3]) | |||
|
297 | if jedi_version > (0,10): | |||
|
298 | yield _test_complete, 'jedi >0.9 should complete and not crash', 'a=1;a.', 'real' | |||
296 | yield _test_complete, 'can infer first argument', 'a=(1,"foo");a[0].', 'real' |
|
299 | yield _test_complete, 'can infer first argument', 'a=(1,"foo");a[0].', 'real' | |
297 | yield _test_complete, 'can infer second argument', 'a=(1,"foo");a[1].', 'capitalize' |
|
300 | yield _test_complete, 'can infer second argument', 'a=(1,"foo");a[1].', 'capitalize' | |
298 | yield _test_complete, 'cover duplicate completions', 'im', 'import', 0, 2 |
|
301 | yield _test_complete, 'cover duplicate completions', 'im', 'import', 0, 2 |
General Comments 0
You need to be logged in to leave comments.
Login now