No ideas, but if you could bisect to find the Django commit where the problem started to appear that will probably help.
On Friday, July 10, 2015 at 7:21:37 AM UTC-4, [email protected] wrote: > > Hi, > > I've recently tried upgrading from Django 1.7.6 to 1.8.3 but haven't been > able to get my test suite to pass. > > My main problem is that all of the tests pass when run individually, but > when run as an entire test suite, many arbitraily fail due to an > *InterfaceError: > connection already closed*: > > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", > line 838, in execute_sql > cursor = self.connection.cursor() > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", > line 164, in cursor > cursor = self.make_cursor(self._cursor()) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", > line 137, in _cursor > return self.create_cursor() > File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line > 97, in __exit__ > six.reraise(dj_exc_type, dj_exc_value, traceback) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", > line 137, in _cursor > return self.create_cursor() > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py" > , line 212, in create_cursor > cursor = self.connection.cursor() > InterfaceError: connection already closed > > > > I was previously using psycopg2.6 with Postgres 9.3 and have tried > upgrading to psycopg2.6.1 with Postgres 9.4, but this hasn't helped. > > Forcing all my TestCase classes to inherit from SimpleTestCase resolves > this issue, but inheriting from SimpleTestCase isn't something that I wish > to do. > > Any help would be much appreciated. > > Thanks, > > Tom > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/02f8f67e-6019-4497-8255-7b22731c95af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

