According to the SO post, you're seeing TestObject.objects.all().count() return two different values on successive calls.
That is basically impossible unless there's something else getting in there and doing stuff to your db. Alternatively, does your subclass of TestCase correctly call super(MyTestCase, self).setUp() and other superclass methods to get the DB setup right? Malcolm On 19 August 2011 22:05, patjenk <patj...@gmail.com> wrote: > As I understand it, the database should be reset between each test. To > me this means that unless the variable being examined is an attribute > of self, the tests shouldn't affect each other. > > Could it be possible that there is a sqllite subtly that delays the > reset of the table count and it affects the outcome of the test in > this instance? > > On Aug 19, 3:43 pm, bik...@gmail.com wrote: > > Could it be that the tests affect each other (when ran in a series)? > > > > Sent from my BlackBerry® from Vodafone > > > > -----Original Message----- > > From: dm03514 <dm03...@gmail.com> > > > > Sender: django-users@googlegroups.com > > Date: Fri, 19 Aug 2011 12:13:24 > > To: Django users<django-users@googlegroups.com> > > Reply-To: django-users@googlegroups.com > > Subject: Django Test Corrupted Test Data > > > > I have a test class that subclasses django.test.TestCase which has > > about 5 different tests in it. When I run my full test suite (using > > nose, and specifying sqlite as backend) there are a series of > > failures. When I go to debug the tests, running them individually, > > they pass fine. > > > > http://stackoverflow.com/questions/7126172/django-testrunner-incorrec... > > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group athttp:// > groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Malcolm Box malcolm....@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.