Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948929 - [guru] dev-python/python-lsp-isort-0.2.0 fails tests: FAILED test_plugin.py::test_pylsp_format_document - TypeError: pylsp_format_document() missing 1 required positional argument: document
Summary: [guru] dev-python/python-lsp-isort-0.2.0 fails tests: FAILED test_plugin.py::...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Moritz Brunner
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2025-01-28 08:01 UTC by Agostino Sarubbo
Modified: 2025-05-04 14:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,67.86 KB, text/plain)
2025-01-28 08:01 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2025-01-28 08:01:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/python-lsp-isort-0.2.0 fails tests.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2025-01-28 08:01:52 UTC
Created attachment 917693 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2025-01-28 08:01:53 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E       TypeError: pylsp_format_document() missing 1 required positional argument: 'document'
E       TypeError: pylsp_format_range() missing 1 required positional argument: 'range'
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
FAILED tests/test_plugin.py::test_pylsp_format_document - TypeError: pylsp_format_document() missing 1 required positional argument: 'document'
FAILED tests/test_plugin.py::test_pylsp_format_range - TypeError: pylsp_format_range() missing 1 required positional argument: 'range'
tests/test_plugin.py::test_pylsp_format_document FAILED                 [11/12]
tests/test_plugin.py::test_pylsp_format_range FAILED                    [12/12]
Comment 3 Moritz Brunner 2025-01-28 09:37:37 UTC
The test failure has already been reported upstream. The unit tests haven't kept up with recent upstream code changes, so the test suite fails every time.
Comment 4 Larry the Git Cow gentoo-dev 2025-05-04 14:16:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=08d1cec2ceb9c9b5460e8ae3f53f9e7346b38434

commit 08d1cec2ceb9c9b5460e8ae3f53f9e7346b38434
Author:     Moritz Brunner <moritz.brunner+gentoo@posteo.de>
AuthorDate: 2025-05-04 07:43:50 +0000
Commit:     Moritz Brunner <moritz.brunner+gentoo@posteo.de>
CommitDate: 2025-05-04 07:43:54 +0000

    dev-python/python-lsp-isort: add 0.2.1, drop 0.2.0
    
    Closes: https://bugs.gentoo.org/948929
    Signed-off-by: Moritz Brunner <moritz.brunner+gentoo@posteo.de>

 dev-python/python-lsp-isort/Manifest                                    | 2 +-
 .../{python-lsp-isort-0.2.0.ebuild => python-lsp-isort-0.2.1.ebuild}    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)