mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed Python 2 notes in docs.
This commit is contained in:
@@ -177,9 +177,9 @@ control the particular collation used by the test database. See the
|
||||
:doc:`settings documentation </ref/settings>` for details of these
|
||||
and other advanced settings.
|
||||
|
||||
If using an SQLite in-memory database with Python 3.4+ and SQLite 3.7.13+,
|
||||
`shared cache <https://www.sqlite.org/sharedcache.html>`_ will be enabled, so
|
||||
you can write tests with ability to share the database between threads.
|
||||
If using an SQLite in-memory database with SQLite 3.7.13+, `shared cache
|
||||
<https://www.sqlite.org/sharedcache.html>`_ is enabled, so you can write tests
|
||||
with ability to share the database between threads.
|
||||
|
||||
.. admonition:: Finding data from your production database when running tests?
|
||||
|
||||
|
||||
@@ -1708,9 +1708,9 @@ Management commands can be tested with the
|
||||
:func:`~django.core.management.call_command` function. The output can be
|
||||
redirected into a ``StringIO`` instance::
|
||||
|
||||
from io import StringIO
|
||||
from django.core.management import call_command
|
||||
from django.test import TestCase
|
||||
from django.utils.six import StringIO
|
||||
|
||||
class ClosepollTest(TestCase):
|
||||
def test_command_output(self):
|
||||
|
||||
Reference in New Issue
Block a user