mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unnecessary assignments in various code.
This commit is contained in:
committed by
Mariusz Felisiak
parent
80482e9249
commit
8b3f1c35dd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user