From 0724d578e22e4028385379ef5286d5665af2fb79 2017-01-31 20:45:18 From: Matthias Bussonnier Date: 2017-01-31 20:45:18 Subject: [PATCH] Skip some test which fails on 0.9 --- diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py index b43305d..dab79ec 100644 --- a/IPython/core/tests/test_completer.py +++ b/IPython/core/tests/test_completer.py @@ -292,7 +292,10 @@ def test_jedi(): completions = set(ip.Completer.completions(s, l)) assert_not_in(Completion(l, l, comp), completions, reason) - yield _test_complete, 'jedi >0.9 should complete and not crash', 'a=1;a.', 'real' + import jedi + jedi_version = tuple(int(i) for i in jedi.__version__.split('.')[:3]) + if jedi_version > (0,10): + yield _test_complete, 'jedi >0.9 should complete and not crash', 'a=1;a.', 'real' yield _test_complete, 'can infer first argument', 'a=(1,"foo");a[0].', 'real' yield _test_complete, 'can infer second argument', 'a=(1,"foo");a[1].', 'capitalize' yield _test_complete, 'cover duplicate completions', 'im', 'import', 0, 2