#34825: SQLite database files are not destroyed after tests ---------------------------------------------+------------------------ Reporter: Jacob Walls | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: dev Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ---------------------------------------------+------------------------ 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' }}} -- Ticket URL: <https://code.djangoproject.com/ticket/34825> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018a7b08a3d3-564152b5-9fcd-4396-a3e7-354489b9e2db-000000%40eu-central-1.amazonses.com.