2016-04-06 21:32:59 |
Eric Harney |
description |
Seeing lots of test failures in the gate similar to:
http://logs.openstack.org/44/301444/6/check/gate-cinder-python27-db/d2a40b8/console.html
2016-04-06 17:55:37.231 |
2016-04-06 17:55:37.232 | cinder.tests.unit.test_test.MockAssertTestCase.test_invalid_assert_calls
2016-04-06 17:55:37.232 | ------------------------------------------------------------------------
2016-04-06 17:55:37.232 |
2016-04-06 17:55:37.232 | Captured traceback:
2016-04-06 17:55:37.232 | ~~~~~~~~~~~~~~~~~~~
2016-04-06 17:55:37.232 | Traceback (most recent call last):
2016-04-06 17:55:37.233 | File "cinder/tests/unit/test_test.py", line 77, in test_invalid_assert_calls
2016-04-06 17:55:37.233 | self.assertRaises(AttributeError, lambda: mock_call.assert_called)
2016-04-06 17:55:37.233 | File "/home/jenkins/workspace/gate-cinder-python27-db/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 434, in assertRaises
2016-04-06 17:55:37.233 | self.assertThat(our_callable, matcher)
2016-04-06 17:55:37.233 | File "/home/jenkins/workspace/gate-cinder-python27-db/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
2016-04-06 17:55:37.233 | raise mismatch_error
2016-04-06 17:55:37.233 | testtools.matchers._impl.MismatchError: <function <lambda> at 0x7f435aaf6e60> returned <bound method MagicMock.assert_called of <MagicMock id='139927202691600'>>
2016-04-06 17:55:37.234 |
This is likely due to a new mock release 2.0.0 today.
https://github.com/openstack/cinder/blob/master/cinder/test.py#L104 |
Seeing lots of test failures in the gate similar to:
http://logs.openstack.org/44/301444/6/check/gate-cinder-python27-db/d2a40b8/console.html
2016-04-06 17:55:37.231 |
2016-04-06 17:55:37.232 | cinder.tests.unit.test_test.MockAssertTestCase.test_invalid_assert_calls
2016-04-06 17:55:37.232 | ------------------------------------------------------------------------
2016-04-06 17:55:37.232 |
2016-04-06 17:55:37.232 | Captured traceback:
2016-04-06 17:55:37.232 | ~~~~~~~~~~~~~~~~~~~
2016-04-06 17:55:37.232 | Traceback (most recent call last):
2016-04-06 17:55:37.233 | File "cinder/tests/unit/test_test.py", line 77, in test_invalid_assert_calls
2016-04-06 17:55:37.233 | self.assertRaises(AttributeError, lambda: mock_call.assert_called)
2016-04-06 17:55:37.233 | File "/home/jenkins/workspace/gate-cinder-python27-db/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 434, in assertRaises
2016-04-06 17:55:37.233 | self.assertThat(our_callable, matcher)
2016-04-06 17:55:37.233 | File "/home/jenkins/workspace/gate-cinder-python27-db/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
2016-04-06 17:55:37.233 | raise mismatch_error
2016-04-06 17:55:37.233 | testtools.matchers._impl.MismatchError: <function <lambda> at 0x7f435aaf6e60> returned <bound method MagicMock.assert_called of <MagicMock id='139927202691600'>>
2016-04-06 17:55:37.234 |
This is due to a new mock release 2.0.0 today.
https://github.com/openstack/cinder/blob/master/cinder/test.py#L104 |
|