﻿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
34825	SQLite database files are not destroyed after tests	Jacob Walls	David Sanders	"After running the Django unit tests, I'm left with 8 .sqlite3 files like so.

Bisected to 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.

{{{
tests % python3.11 runtests.py admin_inlines
Testing against Django installed in '/Users/jwalls/django/django' with up to 8 processes
Found 82 test(s).
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
System check identified no issues (0 silenced).
.ssssssssssss.....................................................................
----------------------------------------------------------------------
Ran 82 tests in 1.419s

OK (skipped=12)
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
tests % git status
On branch main
Your branch is ahead of 'origin/main' by 86 commits.
  (use ""git push"" to publish your local commits)

Untracked files:
  (use ""git add <file>..."" to include in what will be committed)
        other_1.sqlite3
        other_2.sqlite3
        other_3.sqlite3
        other_4.sqlite3
        other_5.sqlite3
        other_6.sqlite3
        other_7.sqlite3
        other_8.sqlite3

nothing added to commit but untracked files present (use ""git add"" to track)
}}}


----


Interestingly, I set a breakpoint at `_destroy_test_db()` and found this:
{{{
(Pdb) test_database_name
'file:memorydb_default?mode=memory&cache=shared'
}}}"	Bug	closed	Testing framework	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
