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'.
Reviewed: https:/ /review. openstack. org/169005 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=34058248231 61e9ea5ce4474b6 e701bda369bdb4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3405824823161e9 ea5ce4474b6e701 bda369bdb4
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
LOG. debug(' '.join( dump))
TypeError: sequence item 3: expected string, MagicMock found
107, in _log_res
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: I36fd406a06958e 795ecf9aa9ff933 eddaa979fc8
Closes-Bug: #1438300