Change Icaffd0c40f55d94014ab4758b392bf5c38f0b0f6 makes Tempest fail on py26

Bug #1212071 reported by Matt Riedemann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Attila Fazekas

Bug Description

This change makes several base test classes in tempest call super.tearDownClass() which fails if you're running on python 2.6 (which you will be if you're on RHEL 6):

https://github.com/openstack/tempest/commit/b86cda92e2560ef69bcceef367fbf323be0e8c6e

You get a failure like this:

  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/usr/lib/python2.6/site-packages/nose/util.py", line 469, in try_run
    return func()
  File "/tmp/tempest/tempest/tempest/api/compute/base.py", line 113, in tearDownClass
    super(BaseComputeTest, cls).tearDownClass()
'super' object has no attribute 'tearDownClass'

Running with a venv makes no difference.

Revision history for this message
Attila Fazekas (afazekas) wrote :

Do you still have the issue with the
https://review.openstack.org/#/c/39346/
?

Revision history for this message
Matt Riedemann (mriedem) wrote :

Attila, yes it does:

[root@rhel62 tempest]# nosetests /tmp/tempest/tempest/tempest/api/compute/admin/test_aggregates.py:AggregatesAdminTestJSON.test_aggregate_add_host_as_user
tempest.api.compute.admin.test_aggregates.AggregatesAdminTestJSON.test_aggregate_add_host_as_user[gate,negative] ... ok

----------------------------------------------------------------------
Ran 1 test in 11.021s

OK
[root@rhel62 tempest]#

Changed in tempest:
assignee: nobody → Attila Fazekas (afazekas)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/39346
Committed: http://github.com/openstack/tempest/commit/f86fa3198c5b8285306a587ec4a5832e518ff14e
Submitter: Jenkins
Branch: master

commit f86fa3198c5b8285306a587ec4a5832e518ff14e
Author: Attila Fazekas <email address hidden>
Date: Tue Jul 30 19:56:39 2013 +0200

    setUpClass/tearDownClass full chain

    Ensure the setUpClass/tearDownClass methods calls the super properly.
    The setUpClass call tested at setUp time, the tearDownClass at exit
    time.

    super calling issues are also fixed.

    Implements blueprint stop-leaking
    Closes-Bug: #1212071

    Change-Id: I266efe0cd363b330b1511e7e983dab9f62778848

Changed in tempest:
status: In Progress → Fix Committed
Changed in tempest:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.