Comment 4 for bug 1954512

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-hyperv (master)

Reviewed: https://review.opendev.org/c/openstack/networking-hyperv/+/839755
Committed: https://opendev.org/openstack/networking-hyperv/commit/305dcfafc8796a0aba66b73eeb2d00445d4127fb
Submitter: "Zuul (22348)"
Branch: master

commit 305dcfafc8796a0aba66b73eeb2d00445d4127fb
Author: Lucian Petrut <email address hidden>
Date: Thu Apr 28 15:22:07 2022 +0300

    Avoid mocking the same objects twice

    Starting with Python 3.10, the (now standard) mock library
    no longer allows mocking the same object twice.

    Some utils classes are currently mocked twice. We'll avoid this,
    yet ensuring that the autospec feature is properly used.

    Closes-Bug: #1954512

    Change-Id: I7a2ba44b873ae72d675512d03cd26b69acb9383e