You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since merging of Python 3.12 into Fedora 39, apart from needing to use cached_property from pypi, the tests are failing with the following:
=================================== FAILURES ===================================
______________________ test_Hub.test_call_soon_uses_lock _______________________
self = <t.unit.asynchronous.test_hub.test_Hub object at 0x7f6b3d5572f0>
def test_call_soon_uses_lock(self):
callback = Mock(name='callback')
with patch.object(self.hub, '_ready_lock', autospec=True) as lock:
self.hub.call_soon(callback)
> assert lock.__enter__.called_once()
t/unit/asynchronous/test_hub.py:196:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MagicMock name='_ready_lock.__enter__' id='140098499051792'>
name = 'called_once'
def __getattr__(self, name):
if name in {'_mock_methods', '_mock_unsafe'}:
raise AttributeError(name)
elif self._mock_methods is not None:
if name not in self._mock_methods or name in _all_magics:
raise AttributeError("Mock object has no attribute %r" % name)
elif _is_magic(name):
raise AttributeError(name)
if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):
if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
> raise AttributeError(
f"{name!r} is not a valid assertion. Use a spec "
f"for the mock if {name!r} is meant to be an attribute.")
E AttributeError: 'called_once' is not a valid assertion. Use a spec for the mock if 'called_once' is meant to be an attribute.
/usr/lib64/python3.12/unittest/mock.py:663: AttributeError
______________________ test_Hub.test__pop_ready_uses_lock ______________________
self = <t.unit.asynchronous.test_hub.test_Hub object at 0x7f6b3d595a30>
def test__pop_ready_uses_lock(self):
with patch.object(self.hub, '_ready_lock', autospec=True) as lock:
self.hub._pop_ready()
> assert lock.__enter__.called_once()
t/unit/asynchronous/test_hub.py:571:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MagicMock name='_ready_lock.__enter__' id='140098497272800'>
name = 'called_once'
def __getattr__(self, name):
if name in {'_mock_methods', '_mock_unsafe'}:
raise AttributeError(name)
elif self._mock_methods is not None:
if name not in self._mock_methods or name in _all_magics:
raise AttributeError("Mock object has no attribute %r" % name)
elif _is_magic(name):
raise AttributeError(name)
if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):
if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
> raise AttributeError(
f"{name!r} is not a valid assertion. Use a spec "
f"for the mock if {name!r} is meant to be an attribute.")
E AttributeError: 'called_once' is not a valid assertion. Use a spec for the mock if 'called_once' is meant to be an attribute.
/usr/lib64/python3.12/unittest/mock.py:663: AttributeError
Apart from the buildroot defaults, the following packages (in these versions) are used for the build:
Since merging of Python 3.12 into Fedora 39, apart from needing to use cached_property from pypi, the tests are failing with the following:
Apart from the buildroot defaults, the following packages (in these versions) are used for the build:
The text was updated successfully, but these errors were encountered: