← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1360252] [NEW] testtools 0.9.36+ breaks unit tests for multiple projects

 

Public bug reported:

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

** Affects: glance
     Importance: Undecided
         Status: New

** Affects: neutron
     Importance: Undecided
         Status: New

** Also affects: glance
   Importance: Undecided
       Status: New

-- 
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 OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Neutron (virtual network service):
  New

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


Follow ups

References