yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37302
[Bug 1360252] Re: testtools 0.9.36+ breaks unit tests for multiple projects
A fix was released in Havana as per this patch -
https://review.openstack.org/#/c/117037/3
A fix was merged into master as per this patch -
https://review.openstack.org/#/c/70668/
Neutron currently uses testtools>=1.4.0 (as per test-requirements.txt)
** Changed in: neutron
Status: Incomplete => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1360252
Title:
testtools 0.9.36+ breaks unit tests for multiple projects
Status in Glance:
Fix Released
Status in neutron:
Fix Released
Status in sqlalchemy-migrate:
Fix Committed
Bug description:
Tests fails as in [1]:
Traceback (most recent call last):
File "neutron/tests/unit/services/loadbalancer/test_loadbalancer_plugin.py", line 84, in setUp
super(LoadBalancerExtensionTestCase, self).setUp()
File "neutron/tests/unit/testlib_api.py", line 56, in setUp
super(WebTestCase, self).setUp()
File "neutron/tests/base.py", line 52, in setUp
super(BaseTestCase, self).setUp()
File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 663, in setUp
% (sys.modules[self.__class__.__module__].__file__,))
ValueError: In File: neutron/tests/unit/services/loadbalancer/test_loadbalancer_plugin.pyc
TestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.
This is due to the following check in new testtools [2].
[1]: http://logs.openstack.org/53/108453/3/check/gate-neutron-python26/9f8d04e/testr_results.html.gz
[2]:https://github.com/testing-cabal/testtools/commit/5c3b92d90a64efaecdc4010a98002bfe8b888517
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1360252/+subscriptions
References