Switch unit tests to the context manager form of assertRaisesMessage.
Review Request #10293 — Created Oct. 30, 2018 and submitted
We have a lot of older unit tests that use the lambda form of
assertRaisesMessage
, which is a bit more annoying to work with. This
was needed for older Python support. In preparation for some other
unit test changes, this change performs some cleanup on these calls,
switching to the context manager form in all calls.
Unit tests pass.
- Change Summary:
-
Fixed some Review Bot warnings from a bad
git add -p
. - Commit:
-
db915ed319e88ad11ba23d445d0cd8ca759e5a95b74b1df1a652159dd190a3713fd2a592de88da68
- Diff:
-
Revision 2 (+226 -178)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.