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():
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_websocketp roxy.py" , line 138, in setUp NovaProxyReques tHandler( ) vagrant/ nova/nova/ console/ websocketproxy. py", line 100, in __init__ ProxyRequestHan dler.__ init__( self, *args, **kwargs) vagrant/ nova/.tox/ py38/lib/ python3. 8/site- packages/ oslotest/ mock_fixture. py", line 46, in __init__ _AutospecMockMi xin, self)._ _init__ (*args, **kwargs) python3. 8/unittest/ mock.py" , line 2018, in __init__ super(MagicMixi n, self)._ _init__ (*args, **kw) python3. 8/unittest/ mock.py" , line 1057, in __init__ super(CallableM ixin, self).__init__( python3. 8/unittest/ mock.py" , line 442, in __init__ _mock_add_ spec(spec, spec_set, _spec_as_instance, _eat_self) python3. 8/unittest/ mock.py" , line 497, in _mock_add_spec iscoroutinefunc tion(getattr( spec, attr, None)): vagrant/ nova/nova/ console/ websocketproxy. py", line 106, in compute_rpcapi format_ stack() :
self.wh = websocketproxy.
File "/home/
websockify.
File "/home/
super(
File "/usr/lib/
_safe_
File "/usr/lib/
_safe_
File "/usr/lib/
self.
File "/usr/lib/
if asyncio.
File "/home/
for line in traceback.