We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ff79d commit 2d3c52cCopy full SHA for 2d3c52c
test/plugins/test_folding.py
@@ -1,11 +1,11 @@
1
# Copyright 2019 Palantir Technologies, Inc.
2
3
+import sys
4
from textwrap import dedent
5
6
from pyls import uris
-from pyls.workspace import Document
7
from pyls.plugins.folding import pyls_folding_range
8
-
+from pyls.workspace import Document
9
10
DOC_URI = uris.from_fs_path(__file__)
11
DOC = dedent("""
@@ -146,6 +146,10 @@ def test_folding(workspace):
146
{'startLine': 62, 'endLine': 63},
147
{'startLine': 64, 'endLine': 65},
148
{'startLine': 67, 'endLine': 68}]
149
+ if sys.version_info[:2] >= (3, 9):
150
+ # the argument list of the decorator is also folded in Python >= 3.9
151
+ expected.insert(4, {'startLine': 9, 'endLine': 10})
152
+
153
assert ranges == expected
154
155
0 commit comments