[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python-django build weirdness



On Tue, Sep 24, 2013 at 11:23:14AM +1000, Brian May wrote:
> Hello,
> 
> >From a wheezy box, I am running the following commands:
> 
> dget
> http://ftp.de.debian.org/debian/pool/main/p/python-django/python-django_1.5.4-1.dsc
> cd python-django-1.5.4
> dpkg-buildpackage -rfakeroot -sa 2>&1 | tee $logfile
> 
> For different values of $logfile.
> 
> If I run this from my home directory, it works. Every time.
> 
> If I run this instead from /tmp/brian/tmp.rJDf6JJXaz - it fails. It always
> fails at exactly the same point.
> 
> ======================================================================
> 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

Why don't you catch the AssertionError at this point and check what the extra
User object is?

I just tried it on the same path as you used, but it worked for me. My /tmp is
on tmpfs though.

-- 
Kind regards,
Loong Jin

Attachment: signature.asc
Description: Digital signature


Reply to: