#33359: Don't close database connections after every TestCase
-------------------------------------+-------------------------------------
Reporter: Ran Benita | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Testing framework | Version: dev
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => needsinfo
Comment:
This change crashes many tests for non-in-memory database on SQLite, e.g.:
{{{
$ ./runtests.py backends queries test_utils
...
File "/django/django/db/backends/sqlite3/base.py", line 268, in
create_cursor
return self.connection.cursor(factory=SQLiteCursorWrapper)
django.db.utils.ProgrammingError: Cannot operate on a closed database.
}}}
It's tempting to remove these two lines, but more research is needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/33359#comment:3>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.b02814f9bba88188332e27c7fbce9d32%40djangoproject.com.