Skip to content

Commit f49d58e

Browse files
committed
Skip completion test in Julia 0.6
1 parent 749b702 commit f49d58e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/replhelper/tests/test_ipyext.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ def make_event(line, text_until_cursor=None, symbol=""):
3434
]
3535

3636

37+
def check_version(julia):
38+
if julia.eval('VERSION < v"0.7-"'):
39+
return pytest.skip("Completion not supported in Julia 0.6")
40+
41+
3742
@pytest.mark.parametrize("event", completable_events)
3843
def test_completable_events(julia, event):
3944
dummy_ipython = None
4045
completions = julia_completer(julia, dummy_ipython, event)
4146
assert isinstance(completions, list)
47+
check_version(julia)
4248
assert completions
4349
assert set(map(type, completions)) == set(string_types)
4450

@@ -48,4 +54,5 @@ def test_uncompletable_events(julia, event):
4854
dummy_ipython = None
4955
completions = julia_completer(julia, dummy_ipython, event)
5056
assert isinstance(completions, list)
57+
check_version(julia)
5158
assert not completions

0 commit comments

Comments
 (0)