assertGreaterEqual not in Python 2.6

Bug #888711 reported by Kevin L. Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Brian Waldon

Bug Description

unittest in Python 2.6 does not possess assertGreaterEqual():

======================================================================
ERROR: test_show_image_format (glance.tests.functional.test_bin_glance.TestBinGlance)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/klmitch/devel/src/glance/glance/tests/functional/test_bin_glance.py", line 647, in test_show_image_format
    self.assertGreaterEqual(set(lines), set(expected_lines))
AttributeError: 'TestBinGlance' object has no attribute 'assertGreaterEqual'

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Sorry guys!

Changed in glance:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/1516
Committed: http://github.com/openstack/glance/commit/4213a1e9dabda4e9174678ce46a0d80da38ded3e
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 4213a1e9dabda4e9174678ce46a0d80da38ded3e
Author: Brian Waldon <email address hidden>
Date: Thu Nov 10 15:47:05 2011 -0500

    Removing assertGreaterEqual

    Python 2.6 doesn't support this, so we should use assertTrue
    instead. Fixes bug 888711

    Change-Id: I78a0603bc4979ae3831394ea57f12fd328e03573

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-2 → 2012.1
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.