Switch unit tests to the context manager form of assertRaisesMessage.

Review Request #10293 — Created Oct. 30, 2018 and submitted

Information

Django Evolution
master
b74b1df...

Reviewers

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.

Description From Last Updated

E303 too many blank lines (2)

reviewbotreviewbot

E303 too many blank lines (2)

reviewbotreviewbot

E131 continuation line unaligned for hanging indent

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (f281b14)
Loading...