Provide Python 2.7 compatibility for cinder/tests/test_srb.py

Bug #1407781 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Corey Bryant

Bug Description

cinder/tests/test_srb.py uses assertRaisesRegex() , which was renamed from assertRaisesRegexp() in python version 3.2.

This is ok but we still need to enable the tests to run under prior python versions, therefore we still need to call assertRaisesRegexp() if assertRaisesRegex() isn't available.

Changed in cinder:
assignee: nobody → Corey Bryant (corey.bryant)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/145041

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/145041
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=4478224d1d97e8936af3f679f65b791ee6375f46
Submitter: Jenkins
Branch: master

commit 4478224d1d97e8936af3f679f65b791ee6375f46
Author: Corey Bryant <email address hidden>
Date: Mon Jan 5 14:53:48 2015 -0500

    Use assertRaisesRegexp() in test_srb.py.

    Python >= 2.7 should be using assertRaisesRegexp()
    rather than assertRaisesRegex().

    Change-Id: I033b88d50cf90503e1123a9871c1bc252d914c06
    Closes-Bug: 1407781

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