Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915987 - dev-python/jupyter-lsp-2.2.0 fails tests
Summary: dev-python/jupyter-lsp-2.2.0 fails tests
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-19 04:05 UTC by Jonathan Lovelace
Modified: 2023-10-19 04:14 UTC (History)
0 users

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


Attachments
dev-python:jupyter-lsp-2.2.0:20231018-132835.log (dev-python:jupyter-lsp-2.2.0:20231018-132835.log,132.35 KB, text/plain)
2023-10-19 04:05 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.37 KB, text/plain)
2023-10-19 04:05 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-10-19 04:05:23 UTC
Created attachment 873126 [details]
dev-python:jupyter-lsp-2.2.0:20231018-132835.log

=dev-python/jupyter-lsp-2.2.0 fails its test phase for me, specifically the test "jupyter_lsp/tests/test_session.py::test_start_unknown[foo-language-server]" The failure output is very long, due to the "pretty-printing" of JSON, but it starts as follows:

=================================================================================== FAILURES ===================================================================================
___________________________________________________________________ test_start_unknown[foo-language-server] ____________________________________________________________________

known_unknown_server = 'foo-language-server'
handlers = (<jupyter_lsp.tests.conftest.MockHandler object at 0x7f2cdcc38550>, <jupyter_lsp.tests.conftest.MockWebsocketHandler object at 0x7f2cdcc2bf50>)
jsonrpc_init_msg = '{"id": 0, "jsonrpc": "2.0", "method": "initialize", "params": {"capabilities": {"workspace": {"didChangeConfiguration...:///var/tmp/portage/dev-python/jupyter-lsp-2.2.0/work/jupyter-lsp-2.2.0/jupyter_lsp/tests", "workspaceFolders": null}}'

    @pytest.mark.asyncio
    async def test_start_unknown(known_unknown_server, handlers, jsonrpc_init_msg):
        """will a process not start for an unknown server if a handler starts?"""
        handler, ws_handler = handlers
        manager = handler.manager
        manager.initialize()

>       await assert_status_set(handler, {"not_started"})

handler    = <jupyter_lsp.tests.conftest.MockHandler object at 0x7f2cdcc38550>
handlers   = (<jupyter_lsp.tests.conftest.MockHandler object at 0x7f2cdcc38550>,
 <jupyter_lsp.tests.conftest.MockWebsocketHandler object at 0x7f2cdcc2bf50>)
jsonrpc_init_msg = ('{"id": 0, "jsonrpc": "2.0", "method": "initialize", "params": '
 '{"capabilities": {"workspace": {"didChangeConfiguration": {}}, '
 '"textDocument": {}}, "initializationOptions": null, "processId": null, '
 '"rootUri": '
 '"file:///var/tmp/portage/dev-python/jupyter-lsp-2.2.0/work/jupyter-lsp-2.2.0/jupyter_lsp/tests", '
 '"workspaceFolders": null}}')
known_unknown_server = 'foo-language-server'
manager    = <jupyter_lsp.manager.LanguageServerManager object at 0x7f2cdcc2be10>
ws_handler = <jupyter_lsp.tests.conftest.MockWebsocketHandler object at 0x7f2cdcc2bf50>

jupyter_lsp/tests/test_session.py:64:
Comment 1 Jonathan Lovelace 2023-10-19 04:05:44 UTC
Created attachment 873127 [details]
emerge-info.txt