Comment 6 for bug 1640141

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/newton)

Reviewed: https://review.openstack.org/395289
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=b32926a005a74971ade4517e25dbab1afc88535c
Submitter: Jenkins
Branch: stable/newton

commit b32926a005a74971ade4517e25dbab1afc88535c
Author: Ben Nemec <email address hidden>
Date: Tue Nov 8 23:41:12 2016 +0000

    Mock yaml.safe_load safely

    Just monkey-patching yaml.safe_load can break later tests because
    it isn't automatically undone after the test completes. Using
    mock.patch to set the mock will handle the cleanup safely.

    This is additional followup fix for the linked bug.

    Partial-Bug: #1640141
    Change-Id: I1b8905d1074f7847e51f64d53a9eaa47d063112e
    (cherry picked from commit 06f7b3a00e6acaf0d19d95d0c636cecb4642b749)