Replace try/except/else with self.assertraises for expected exception tests.
Recently community reached a general consensus on not to use the try/except/else format for testing expected exceptions, instead to use self.assertRaises & addCleanUp for finally part. This proposal is to modify or update the tests as per the above requirements.
Blueprint information
- Status:
- Complete
- Approver:
- Jay Pipes
- Priority:
- Medium
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Donald Ngo
- Definition:
- Approved
- Series goal:
- None
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- David Kranz
- Completed by
- David Kranz
Whiteboard
List of tests required this fix listing here:
https:/
Gerrit topic: https:/
Addressed by: https:/
Replace try/except/else with self.assertRaises.
Addressed by: https:/
Replace try/except/else with self.assertRaises.
Addressed by: https:/
Replace try/except/else with self.assertRaises.
Addressed by: https:/
Replace try/except/else with self.assertRaises.
Addressed by: https:/
Convert try/expect/else as per new Tempest style.
Addressed by: https:/
Convert try/expect/else as per new Tempest style.
Addressed by: https:/
Replace try/except/else with self.assertRaises