Source: patroni Version: 3.3.5-1 Severity: serious User: debian-pyt...@lists.debian.org Usertags: python3.13
Hi Maintainer The autopkgtests of this package fail with Python 3.13 [1]. I've copied what I hope is the relevant part of the log below. Regards Graham [1] https://ci.debian.net/packages/p/patroni/testing/amd64/ 2709s =================================== FAILURES =================================== 2709s ________________________ TestConsul.test_update_leader _________________________ 2709s 2709s self = <tests.test_consul.TestConsul testMethod=test_update_leader> 2709s mock_renew = <MagicMock name='renew' id='139986444480736'> 2709s 2709s @patch.object(Session, 'renew') 2709s @patch.object(KV, 'put', Mock(side_effect=ConsulException)) 2709s def test_update_leader(self, mock_renew): 2709s cluster = self.c.get_cluster() 2709s self.c._session = 'fd4f44fe-2cac-bba5-a60b-304b51ff39b8' 2709s with patch.object(KV, 'delete', Mock(return_value=True)): 2709s with patch.object(KV, 'put', Mock(return_value=True)): 2709s self.assertTrue(self.c.update_leader(cluster, 12345, failsafe={'foo': 'bar'})) 2709s with patch.object(KV, 'put', Mock(side_effect=ConsulException)): 2709s self.assertFalse(self.c.update_leader(cluster, 12345)) 2709s with patch('time.time', Mock(side_effect=[0, 0, 0, 0, 100, 200, 300])): 2709s > self.assertRaises(ConsulError, self.c.update_leader, cluster, 12345) 2709s E AssertionError: ConsulError not raised by update_leader 2709s 2709s tests/test_consul.py:196: AssertionError