[Debichem-devel] Bug#1115562: opendrop: FTBFS with python3-pytest-asyncio >= 1.0.0

Colin Watson cjwatson at debian.org
Thu Sep 18 08:07:43 BST 2025


Source: opendrop
Version: 3.3.2-2
Severity: serious
Tags: ftbfs upstream
Justification: FTBFS

python3-pytest-asyncio >= 1.0.0 caused opendrop to FTBFS with this test 
failure:

__________ ERROR at setup of TestEvent.test_wait_and_cancel_wait_task __________
file /build/reproducible-path/opendrop-3.3.2/.pybuild/cpython3_3.13/build/tests/utility/events/test_events.py, line 208
      @pytest.mark.asyncio
      async def test_wait_and_cancel_wait_task(self, event_loop):
          coro = self.event.wait()
          wait_task = event_loop.create_task(coro)

          # Hand over control to event loop for a bit to begin wait_task
          await asyncio.sleep(0.1)

          wait_task.cancel()

          # This should not raise any errors about attempting to set the result of a cancelled future.
          self.event.fire(123)
E       fixture 'event_loop' not found
>       available fixtures: _class_scoped_runner, _function_scoped_runner, _module_scoped_runner, _package_scoped_runner, _session_scoped_runner, _xunit_setup_method_fixture_TestEvent, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, doctest_namespace, event_loop_policy, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory, xvfb
>       use 'pytest --fixtures [testpath]' for help on them.

I filed https://github.com/jdber1/opendrop/pull/74 upstream to fix this, 
so you should just be able to cherry-pick that patch.

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson at debian.org]



More information about the Debichem-devel mailing list