#16412: Disabling an 'django.contrib.sites' app, causes Try disabling an
'django.contrib.sites' app, (which as it is a contrib app, should be an
optional), and you'll get an error in tests with
django.contrib.auth.tests.forms.PasswordResetFormTest
--------------------------------------+---------------------------------
               Reporter:  haras       |          Owner:  nobody
                   Type:  Bug         |         Status:  reopened
              Milestone:              |      Component:  contrib.auth
                Version:  SVN         |       Severity:  Release blocker
             Resolution:              |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  1
                  UI/UX:  0           |
--------------------------------------+---------------------------------
Changes (by haras):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Creating test database for alias 'default'...
 
..............................................................E.................
 
................................................................................
 
................................................................................
 
................................................................................
 ......
 ======================================================================
 ERROR: test_custom_email_subject
 (django.contrib.auth.tests.forms.PasswordResetFormTest)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\Python27\Lib\site-packages\django\contrib\auth\tests\forms.py",
 line 264, in test_custom_email_subject
     form.save()
   File "C:\Python27\Lib\site-packages\django\contrib\auth\forms.py", line
 138, in save
     current_site = get_current_site(request)
   File "C:\Python27\Lib\site-packages\django\contrib\sites\models.py",
 line 94, in get_current_site
     current_site = RequestSite(request)
   File "C:\Python27\Lib\site-packages\django\contrib\sites\models.py",
 line 74, in __init__
     self.domain = self.name = request.get_host()
 AttributeError: 'NoneType' object has no attribute 'get_host'

 ----------------------------------------------------------------------
 Ran 326 tests in 5.113s

 FAILED (errors=1)
 Destroying test database for alias 'default'...

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16412#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to