﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2658	Test suite fails using SQLite in memory database	Russell Keith-Magee	Russell Keith-Magee	"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."	defect	closed	Database layer (models, ORM)	0.95	normal	fixed			Unreviewed	0	0	0	0	0	0
