Update assertRaises() to assertRaisesRegexp()

Bug #1525909 reported by Sonali Goyal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Confirmed
Low
Chi-Chun Chiang

Bug Description

There are many places in the tests where we use assertRaises() which is not recommended. The recommended one is assertRaisesRegexp(). Change the assertRaises() call to assertRaisesRegexp().

Changed in trove:
assignee: nobody → Sonali Goyal (sonaligoyal654321)
Amrith Kumar (amrith)
Changed in trove:
assignee: Sonali Goyal (sonaligoyal654321) → nobody
tags: added: low-hanging-fruit
Changed in trove:
assignee: nobody → wang junqing (junqing)
Changed in trove:
assignee: Wang Junqing (junqing) → nobody
Changed in trove:
assignee: nobody → Rebecca Finn (rebeccax-finn)
Amrith Kumar (amrith)
Changed in trove:
importance: Undecided → Low
Changed in trove:
assignee: Rebecca Finn (rebeccax-finn) → nobody
jian.song (jiansong)
Changed in trove:
assignee: nobody → jian.song (jiansong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by jian.song (<email address hidden>) on branch: master
Review: https://review.openstack.org/350355

Revision history for this message
Trevor McCasland (twm2016) wrote :

Change was abandoned due to missing regex parameter.

Changed in trove:
status: In Progress → Opinion
status: Opinion → Confirmed
assignee: jian.song (jiansong) → nobody
Changed in trove:
assignee: nobody → Chi-Chun Chiang (baddychiang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to trove (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/470814

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/470822

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Chi-Chun Chiang (<email address hidden>) on branch: master
Review: https://review.openstack.org/470814
Reason: Duplicate

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Samuel Matzek (<email address hidden>) on branch: master
Review: https://review.openstack.org/470822
Reason: Abandoning this because it has -1 comments, has not been updated by the author in 5 months, and is a duplicate of https://review.openstack.org/#/c/466210/

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.