Work around assertRaisesMessage not working on the latest Python 2.7.x.

Review Request #7466 — Created June 28, 2015 and submitted — Latest diff uploaded

Information

Djblets
release-0.8.x
a81c288...

Reviewers

There's a bug with Django's assertRaisesMessage and Python 2.7.9/2.7.10,
which causes all usage as a context manager to fail. Python has reverted
the change for 2.7.11, but Django has no plans to work around that.

The workaround is easy, though. We just don't want to pass a default
value for the callable down to assertRaisesRegex. This change provides
our own implementation that fixes this issue.

All formerly-failing unit tests now pass.

    Loading...