Comment 3 for bug 1887735

Revision history for this message
melanie witt (melwitt) wrote :

This is the format_stack() output when the @property is called by the mock itself in python3.8. It does not happen with python3.6:

File "/home/vagrant/nova/nova/tests/unit/console/test_websocketproxy.py", line 138, in setUp
    self.wh = websocketproxy.NovaProxyRequestHandler()
File "/home/vagrant/nova/nova/console/websocketproxy.py", line 100, in __init__
    websockify.ProxyRequestHandler.__init__(self, *args, **kwargs)
File "/home/vagrant/nova/.tox/py38/lib/python3.8/site-packages/oslotest/mock_fixture.py", line 46, in __init__
    super(_AutospecMockMixin, self).__init__(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 2018, in __init__
    _safe_super(MagicMixin, self).__init__(*args, **kw)
File "/usr/lib/python3.8/unittest/mock.py", line 1057, in __init__
    _safe_super(CallableMixin, self).__init__(
File "/usr/lib/python3.8/unittest/mock.py", line 442, in __init__
    self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
File "/usr/lib/python3.8/unittest/mock.py", line 497, in _mock_add_spec
    if asyncio.iscoroutinefunction(getattr(spec, attr, None)):
File "/home/vagrant/nova/nova/console/websocketproxy.py", line 106, in compute_rpcapi
    for line in traceback.format_stack():