[Bug 1051720] Re: self-tests fail when using UserProfile - regression from precise

Rajiv 1051720 at bugs.launchpad.net
Fri May 24 17:35:21 UTC 2013


** Changed in: python-django (Ubuntu)
       Status: New => Confirmed

** Also affects: django
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-django in Ubuntu.
https://bugs.launchpad.net/bugs/1051720

Title:
  self-tests fail when using UserProfile - regression from precise

Status in Django: the Web framework for perfectionists with deadlines:
  New
Status in “python-django” package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/django/+bug/1051720/+subscriptions




More information about the foundations-bugs mailing list