Unit test failure under Python 3.12

Bug #2051112 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
New
Undecided
Unassigned

Bug Description

Hi,

After solving many unit test failures (for which I'll send patches), there's still what's below when building under Debian Unstable (and therefore, Python 3.12). Please help me to solve that last one.

======================================================================
FAIL: mistral.tests.unit.scheduler.test_default_scheduler.DefaultSchedulerTest.test_pickup_from_job_store
mistral.tests.unit.scheduler.test_default_scheduler.DefaultSchedulerTest.test_pickup_from_job_store
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/mock.py", line 1387, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/mistral/tests/unit/scheduler/test_default_scheduler.py", line 161, in test_pickup_from_job_store
    self._wait_target_method_end()
  File "/<<PKGBUILDDIR>>/mistral/tests/unit/scheduler/test_default_scheduler.py", line 83, in _wait_target_method_end
    self.target_mtd_finished.wait()
  File "/usr/lib/python3/dist-packages/eventlet/event.py", line 125, in wait
    result = hub.switch()
             ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 313, in switch
    return self.greenlet.switch()
           ^^^^^^^^^^^^^^^^^^^^^^
eventlet.timeout.Timeout: 15 seconds

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.