#2658: Test suite fails using SQLite in memory database
------------------------------+---------------------------------------------
Reporter: russellm | Owner: russellm
Type: defect | Status: new
Priority: normal | Milestone:
Component: Database wrapper | Version: 0.95
Severity: normal | Keywords:
------------------------------+---------------------------------------------
Ned Batchelder reports that when using the SQLite backend on [3708], the
test_client modeltests closes the database cursor, which causes all the
database schema to be lost.
Modifying backends/sqlite3/base.py to the following:
{{{
def close(self):
from django.conf import settings
if self.connection is not None and settings.DATABASE_NAME !=
":memory:":
self.connection.close()
self.connection = None
}}}
fixes the problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/2658>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---