The e-mail backend is always reset in tests

Review Request #7562 — Created July 31, 2015 and submitted

brennie
Review Board
release-2.0.x
7560
reviewboard

Previously, if a test using the console_email_backend decorator
raised an exception, the e-mail backend would not be reset to the old
backend, causing other tests to fail. This is no longer the case.

Ran unit tests.

Tests that used this decorator that raised an exception caused other
tests to fail without this patch applied but did not with it applied.

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

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (604445b)
Loading...