summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-04-24 04:09:29 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-04-24 13:09:29 +0200
commit8b3f1c35dd848678225e8634d6880efeeab5e796 (patch)
tree2a530f7d0e970b1ae008c0a3f5f2c0b7082e65a1 /tests/logging_tests
parent80482e924953ec0e2484a9cb0f44bd5eeea93856 (diff)
Removed unnecessary assignments in various code.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index c19bfd7559..a257cafa90 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -251,11 +251,10 @@ class AdminEmailHandlerTest(SimpleTestCase):
def get_admin_email_handler(self, logger):
# AdminEmailHandler does not get filtered out
# even with DEBUG=True.
- admin_email_handler = [
+ return [
h for h in logger.handlers
if h.__class__.__name__ == "AdminEmailHandler"
][0]
- return admin_email_handler
def test_fail_silently(self):
admin_email_handler = self.get_admin_email_handler(self.logger)