self-tests fail when using UserProfile - regression from precise

Bug #1051720 reported by James Troup on 2012-09-16
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Django
New
Undecided
Unassigned
python-django (Ubuntu)
High
Unassigned

Bug Description

| $ python manage.py test
| Creating test database for alias 'default'...
| .................................................................................E
| ======================================================================
| ERROR: test_site_profile_not_available (django.contrib.auth.tests.models.ProfileTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/usr/lib/python2.7/dist-packages/django/contrib/auth/tests/models.py", line 29, in test_site_profile_not_available
| del settings.AUTH_PROFILE_MODULE
| File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 215, in __delattr__
| delattr(self._wrapped, name)
| AttributeError: AUTH_PROFILE_MODULE
|
| ----------------------------------------------------------------------
| Ran 82 tests in 10.162s
|
| FAILED (errors=1)
| Destroying test database for alias 'default'...
| $

This seems to be:

 * https://code.djangoproject.com/ticket/17966

and

 * https://code.djangoproject.com/ticket/18824

I fixed it locally with a patch that imports
22f85b9057825b5b4139abf5fd7e8c4ba0d16981 and brings
django/contrib/auth/tests/models.py up to
531878302735e6a2b36d82b584947bbf8eae8111. I've attached the diff.

James Troup (elmo) wrote :

The attachment "Fix self tests when using UserProfile" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
tags: added: quantal
Changed in python-django (Ubuntu):
importance: Undecided → High
Rajiv Shah (compukid) on 2013-05-24
Changed in python-django (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers