Ticket #19296: patch.diff

File patch.diff, 771 bytes (added by Matt, 11 years ago)

patch to also support spatialite

  • django/test/testcases.py

    diff --git a/django/test/testcases.py b/django/test/testcases.py
    index 1239275..ec1f78a 100644
    a b class LiveServerTestCase(TransactionTestCase):  
    10771077        for conn in connections.all():
    10781078            # If using in-memory sqlite databases, pass the connections to
    10791079            # the server thread.
    1080             if (conn.settings_dict['ENGINE'] == 'django.db.backends.sqlite3'
     1080            if (conn.settings_dict['ENGINE'] in ('django.db.backends.sqlite3', 'django.contrib.gis.db.backends.spatialite')
    10811081                and conn.settings_dict['NAME'] == ':memory:'):
    10821082                # Explicitly enable thread-shareability for this connection
    10831083                conn.allow_thread_sharing = True
Back to Top