Skip to content
Browse files

Fixed #16412 -- Prevented a `contrib.auth` test from failing in the p…

…otential case where `contrib.sites` was not installed. Thanks to haras for the report and to Aymeric Augustin for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5c1b4ab commit 09fc775f42c8c0788661821fe43b2bf51281399d @jphalip jphalip committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/auth/tests/
5 django/contrib/auth/tests/
@@ -260,7 +260,10 @@ def test_custom_email_subject(self):
data = {'email': ''}
form = PasswordResetForm(data)
+ # Since we're not providing a request object, we must provide a
+ # domain_override to prevent the save operation from failing in the
+ # potential case where contrib.sites is not installed. Refs #16412.
self.assertEqual(len(mail.outbox), 1)
self.assertEqual(mail.outbox[0].subject, u'Custom password reset on')

0 comments on commit 09fc775

Please sign in to comment.
Something went wrong with that request. Please try again.