mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation timeline.
This commit is contained in:
		
							parent
							
								
									6e40b70bf4
								
							
						
					
					
						commit
						9463a7a8cd
					
				
					 2 changed files with 2 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue