mirror of https://github.com/django/django.git
Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation timeline.
This commit is contained in:
parent
6e40b70bf4
commit
9463a7a8cd
|
@ -6,7 +6,6 @@ import os
|
|||
import pickle
|
||||
import textwrap
|
||||
import unittest
|
||||
import warnings
|
||||
from importlib import import_module
|
||||
from io import StringIO
|
||||
|
||||
|
@ -18,7 +17,6 @@ from django.test.utils import (
|
|||
teardown_databases as _teardown_databases, teardown_test_environment,
|
||||
)
|
||||
from django.utils.datastructures import OrderedSet
|
||||
from django.utils.deprecation import RemovedInDjango21Warning
|
||||
|
||||
try:
|
||||
import tblib.pickling_support
|
||||
|
@ -683,16 +681,6 @@ def partition_suite_by_case(suite):
|
|||
return groups
|
||||
|
||||
|
||||
def setup_databases(*args, **kwargs):
|
||||
warnings.warn(
|
||||
'`django.test.runner.setup_databases()` has moved to '
|
||||
'`django.test.utils.setup_databases()`.',
|
||||
RemovedInDjango21Warning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return _setup_databases(*args, **kwargs)
|
||||
|
||||
|
||||
def filter_tests_by_tags(suite, tags, exclude_tags):
|
||||
suite_class = type(suite)
|
||||
filtered_suite = suite_class()
|
||||
|
|
|
@ -232,3 +232,5 @@ how to remove usage of these features.
|
|||
|
||||
* The ``extra_context`` parameter of ``contrib.auth.views.logout_then_login()``
|
||||
is removed.
|
||||
|
||||
* ``django.test.runner.setup_databases()`` is removed.
|
||||
|
|
Loading…
Reference in New Issue