Source: python-jsonrpc-websocket
Version: 3.1.5-2
Severity: serious
Tags: ftbfs upstream
Justification: FTBFS

python3-pytest-asyncio >= 1.0.0 caused python-jsonrpc-websocket to FTBFS 
with lots of test failures along the following lines:

___________________ ERROR at setup of test_internal_session ____________________
file 
/build/reproducible-path/python-jsonrpc-websocket-3.1.5/.pybuild/cpython3_3.13_jsonrpc-websocket/build/tests.py,
 line 130
  async def test_internal_session(client):
      with patch('jsonrpc_websocket.jsonrpc.aiohttp.ClientSession',
                 return_value=client) as client_class:
          server = Server('/xmlrpc', timeout=0.2)
          client_class.assert_called_once()

          await server.close()

          await server.ws_connect()

          assert client_class.call_count == 2
file 
/build/reproducible-path/python-jsonrpc-websocket-3.1.5/.pybuild/cpython3_3.13_jsonrpc-websocket/build/tests.py,
 line 107
  @pytest_asyncio.fixture
  async def client(event_loop):
      """Generate a mock json server."""
      return JsonTestClient(event_loop)
E       fixture 'event_loop' not found
>       available fixtures: _class_scoped_runner, _function_scoped_runner, 
> _module_scoped_runner, _package_scoped_runner, _session_scoped_runner, cache, 
> capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, client, 
> doctest_namespace, event_loop_policy, monkeypatch, pytestconfig, 
> record_property, record_testsuite_property, record_xml_attribute, recwarn, 
> server, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, 
> unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory
>       use 'pytest --fixtures [testpath]' for help on them.

I filed https://github.com/emlove/jsonrpc-websocket/pull/16 upstream to 
fix this, so you should just be able to cherry-pick that patch.

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

Reply via email to