Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-language-server for 
openSUSE:Factory checked in at 2021-04-17 23:24:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-language-server (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-language-server.new.12324 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-language-server"

Sat Apr 17 23:24:59 2021 rev:18 rq:886234 version:0.36.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-language-server/python-python-language-server.changes
      2021-04-01 14:19:13.788149345 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-language-server.new.12324/python-python-language-server.changes
   2021-04-17 23:25:04.905605977 +0200
@@ -1,0 +2,9 @@
+Thu Apr 15 15:08:02 UTC 2021 - Ben Greiner <[email protected]>
+
+- Add test_py39-code_folding.patch for python 3.9 compatibility
+  gh#python-lsp/python-lsp-server#9
+- This package has essentially been abandoned by Palantir. An
+  updated fork is being prepared here:
+  https://github.com/python-lsp/python-lsp-server
+
+-------------------------------------------------------------------

New:
----
  test_py39-code_folding.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-language-server.spec ++++++
--- /var/tmp/diff_new_pack.lqROjO/_old  2021-04-17 23:25:05.341606721 +0200
+++ /var/tmp/diff_new_pack.lqROjO/_new  2021-04-17 23:25:05.341606721 +0200
@@ -31,6 +31,8 @@
 Patch1:         test_snippet_fix.patch
 # PATCH-FIX-UPSTREAM test_numpy_hover_fix.patch -- gh#python-ls/python-ls#7
 Patch2:         test_numpy_hover_fix.patch
+# PATCH-FIX-UPSTREAM test_py39-code_folding.patch -- gh#python-ls/python-ls#9
+Patch3:         test_py39-code_folding.patch
 BuildRequires:  %{python_module jedi >= 0.17.2}
 BuildRequires:  %{python_module pluggy}
 BuildRequires:  %{python_module python-jsonrpc-server >= 0.4.0}
@@ -135,7 +137,7 @@
 %endif
 # don't test numpy on python36: NEP 29
 python36_donttest=" or test_numpy or test_pandas or test_matplotlib"
-%pytest -ra -k "not (dummy_k_expr_start ${donttest} ${$python_donttest})"
+%pytest -ra -k "not (dummy_k_expr_start ${donttest} ${$python_donttest})" -vv
 
 %files %{python_files}
 %doc README.rst

++++++ test_py39-code_folding.patch ++++++
diff --git a/test/plugins/test_folding.py b/test/plugins/test_folding.py
index 05f0cdd..91ac0f3 100644
--- a/test/plugins/test_folding.py
+++ b/test/plugins/test_folding.py
@@ -1,11 +1,11 @@
 # Copyright 2019 Palantir Technologies, Inc.
 
+import sys
 from textwrap import dedent
 
 from pyls import uris
-from pyls.workspace import Document
 from pyls.plugins.folding import pyls_folding_range
-
+from pyls.workspace import Document
 
 DOC_URI = uris.from_fs_path(__file__)
 DOC = dedent("""
@@ -146,6 +146,10 @@ def test_folding(workspace):
                 {'startLine': 62, 'endLine': 63},
                 {'startLine': 64, 'endLine': 65},
                 {'startLine': 67, 'endLine': 68}]
+    if sys.version_info[:2] >= (3, 9):
+        # the argument list of the decorator is also folded in Python >= 3.9
+        expected.insert(4, {'startLine': 9, 'endLine': 10})
+
     assert ranges == expected
 
 

Reply via email to