Skip to content

Commit 48f5eca

Browse files
committed
don't test np.sin hover for numpy 1.20
1 parent 1833875 commit 48f5eca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/plugins/test_hover.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ def test_numpy_hover(workspace):
4646
contents = 'NumPy\n=====\n\nProvides\n'
4747
assert contents in pyls_hover(doc, numpy_hov_position_3)['contents'][0]
4848

49-
contents = 'Trigonometric sine, element-wise.\n\n'
50-
assert contents in pyls_hover(
51-
doc, numpy_sin_hov_position)['contents'][0]
49+
# https://github.com/davidhalter/jedi/issues/1746
50+
import numpy as np
51+
52+
if np.lib.NumpyVersion(np.__version__) < '1.20.0':
53+
contents = 'Trigonometric sine, element-wise.\n\n'
54+
assert contents in pyls_hover(
55+
doc, numpy_sin_hov_position)['contents'][0]
5256

5357

5458
def test_hover(workspace):

0 commit comments

Comments
 (0)