This appears to be fixed upstream at: https://github.com/django/django/commit/72f7932cfbe079f5063a2f1b4c09b520d99f5e42
On Wed, Sep 25, 2013 at 11:27 PM, Brian May <[email protected]>wrote: > 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 <[email protected]> > -- Chris Johnston <[email protected] <[email protected]>> Software Engineer - Canonical Ltd. www.ubuntu.com

