summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-09-02 19:48:50 -0400
committerTim Graham <timograham@gmail.com>2017-09-22 12:51:17 -0400
commit9463a7a8cdffc21b38c469e882b2763c2d290fe2 (patch)
treef57da5246421411d8ef209480a2ac9ea551cda60
parent6e40b70bf4c6e475266a9f011269c50f29f0f14e (diff)
Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation timeline.
-rw-r--r--django/test/runner.py12
-rw-r--r--docs/releases/2.1.txt2
2 files changed, 2 insertions, 12 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 672c98b8cd..0975a8c8c0 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -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()
diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt
index e70e3fa591..560eee4fd3 100644
--- a/docs/releases/2.1.txt
+++ b/docs/releases/2.1.txt
@@ -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.