[openstack-dev] [all][tests] Fix it friday! [mock failure in CI]

Robert Collins robertc at robertcollins.net
Tue Jul 14 01:33:04 UTC 2015


On 10 July 2015 at 22:07, Kevin Benton <blak111 at gmail.com> wrote:
> No prob. The fixes for Neutron were relatively trivial.
> https://review.openstack.org/#/c/200420/
>
> The only one that was a bit surprising was the failure of autospec in this
> file:
> https://review.openstack.org/#/c/200420/4/neutron/tests/unit/services/metering/agents/test_metering_agent.py
>
> It was coming back with argument count mismatch failures. It seems like the
> log decorator[1] trips up autospec in the new version.
>
> 1.
> https://github.com/openstack/neutron/blob/master/neutron/services/metering/drivers/noop/noop_driver.py#L22

Did you file a bug for that on mock? I don't recall seeing one.

https://github.com/testing-cabal/mock/issues/264 has a patch upstream
and it works on mock itself, so I'm applying that to cPython and
backporting now.

-Rob



More information about the OpenStack-dev mailing list