Fix assertRaisesMessage calls on Python 2.7.9/2.7.10.

Review Request #7453 — Created June 24, 2015 and submitted

Information

Review Board
release-2.0.x
9c427ad...

Reviewers

assertRaisesMessage on Python 2.7.9/2.7.10 has a known bug where it
can't be used as a context manager. This fixes the code to use the
old-style invocation, where a lambda is passed in, allowing the tests to
run again.

Unit tests now pass.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/tests.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (3112297)