Hi, yes. Some of my test classes do use setUpClass() without calling super().
On Monday, July 13, 2015 at 5:44:03 PM UTC+1, Tim Graham wrote: > > Do your test classes use setUpClass() and/or tearDownClass()? If so, are > you missing super() calls in those methods? > > On Monday, July 13, 2015 at 9:37:03 AM UTC-4, [email protected] wrote: >> >> Thanks for the link >> This is the commit at which my tests start failing: >> da9fe5c Fixed #20392 -- Added TestCase.setUpTestData() >> >> On Monday, July 13, 2015 at 12:39:57 PM UTC+1, Tim Graham wrote: >>> >>> That's a starting point, but there are still a lot of commits between >>> 1.8 and 1.7.x. Here's what I meant by "bisecting the commit": >>> >>> >>> https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression >>> >>> On Monday, July 13, 2015 at 5:50:49 AM UTC-4, [email protected] >>> wrote: >>>> >>>> Thanks for the swift reply. The problem starts with Django 1.8.0. My >>>> test suite passes on all 1.7.x versions. >>>> >>>> On Friday, July 10, 2015 at 2:32:25 PM UTC+1, Tim Graham wrote: >>>>> >>>>> 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/cde5149c-42a5-464b-b14e-ae03e15e403a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

