Comment 3 for bug 1438300

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

Reviewed: https://review.openstack.org/169005
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=3405824823161e9ea5ce4474b6e701bda369bdb4
Submitter: Jenkins
Branch: master

commit 3405824823161e9ea5ce4474b6e701bda369bdb4
Author: Chris Dent <email address hidden>
Date: Mon Mar 30 16:58:46 2015 +0000

    Avoid a error when py27 and py-mysql tests run in sequence

    An imcompletely MagicMock can lead to:

      File "ceilometer/network/statistics/opencontrail/client.py", line
      107, in _log_res
          LOG.debug(''.join(dump))
          TypeError: sequence item 3: expected string, MagicMock found

    When the py-mysql tox test target is run after the py27 target.

    This happens because the Mock is not sufficiently formed for the
    places where it gets used. The "dump" above needs to have a value
    for 'reason'.

    Change-Id: I36fd406a06958e795ecf9aa9ff933eddaa979fc8
    Closes-Bug: #1438300