Fix a signal handler disconnection issue in the webapi tests.

Review Request #8426 — Created Sept. 21, 2016 and submitted

Information

Review Board
release-2.5.x
1068154...

Reviewers

One of the new tests I introduced leaked a signal handler. Instead of
disconnecting when the function ended (due to registering as weak), it
hung around, interfering with some other tests.

This wraps the entire code block in a finally: and disconnects it
after.

Test suite passes.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/tests/test_review_request_draft.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/tests/test_review_request_draft.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (5de521d)
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (5de521d)
Loading...