1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Removed unnecessary assignments in various code.

This commit is contained in:
Jon Dufresne
2019-04-24 04:09:29 -07:00
committed by Mariusz Felisiak
parent 80482e9249
commit 8b3f1c35dd
14 changed files with 20 additions and 33 deletions

View File

@@ -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)