Public bug reported:

Imported from Debian bug http://bugs.debian.org/724637:

Package: python-django
Version: 1.5.4-1

As discussed in http://lists.debian.org/debian-python/2013/09/msg00129.html,
under certain (random?) circumstances, I get the following test failure
when building python-django from Debian source:

======================================================================
FAIL: test_instance_is_maintained
(django.contrib.formtools.tests.wizard.wizardtests.tests.WizardFormKwargsOverrideTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/tmp/brian/tmp.rJDf6JJXaz/python-django-1.5.4/django/contrib/formtools/tests/wizard/wizardtests/tests.py",
line 375, in test_instance_is_maintained
    self.assertEqual(2, User.objects.count())
AssertionError: 2 != 3

----------------------------------------------------------------------

Displaying User.objects.all() shows:

 [<User: johndoe>, <User: test1>, <User: test2>]

This user is created in tests/regressiontests/utils/simplelazyobject.py,
but not destroyed afterwards.

It is possible this is as a result of using unittest.TestCase instead
of django.test.TestCase

Thanks
-- 
Brian May <br...@microcomaustralia.com.au>

** Affects: python-django (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: python-django (Debian)
     Importance: Undecided
         Status: New

** Bug watch added: Debian Bug tracker #724637
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724637

** Changed in: python-django (Debian)
 Remote watch: None => Debian Bug tracker #724637

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

Title:
  FTBFS: test_instance_is_maintained fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-django/+bug/1231923/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to