self-tests fail when using UserProfile - regression from precise

Bug #1051720 reported by James Troup
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-django (Ubuntu)

Bug Description

| $ python 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/", line 29, in test_site_profile_not_available
| del settings.AUTH_PROFILE_MODULE
| File "/usr/lib/python2.7/dist-packages/django/utils/", line 215, in __delattr__
| delattr(self._wrapped, name)
| ----------------------------------------------------------------------
| Ran 82 tests in 10.162s
| FAILED (errors=1)
| Destroying test database for alias 'default'...
| $

This seems to be:




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

Tags: patch quantal
Revision history for this message
James Troup (elmo) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) 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 (rajivshah3)
Changed in python-django (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers