mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Promoted RemovedInDjango21Warning to error in Django's test suite.
This commit is contained in:
		| @@ -19,11 +19,14 @@ from django.test.selenium import SeleniumTestCaseBase | |||||||
| from django.test.utils import get_runner | from django.test.utils import get_runner | ||||||
| from django.utils import six | from django.utils import six | ||||||
| from django.utils._os import upath | from django.utils._os import upath | ||||||
| from django.utils.deprecation import RemovedInDjango20Warning | from django.utils.deprecation import ( | ||||||
|  |     RemovedInDjango20Warning, RemovedInDjango21Warning, | ||||||
|  | ) | ||||||
| from django.utils.log import DEFAULT_LOGGING | from django.utils.log import DEFAULT_LOGGING | ||||||
|  |  | ||||||
| # Make deprecation warnings errors to ensure no usage of deprecated features. | # Make deprecation warnings errors to ensure no usage of deprecated features. | ||||||
| warnings.simplefilter("error", RemovedInDjango20Warning) | warnings.simplefilter("error", RemovedInDjango20Warning) | ||||||
|  | warnings.simplefilter("error", RemovedInDjango21Warning) | ||||||
| # Make runtime warning errors to ensure no usage of error prone patterns. | # Make runtime warning errors to ensure no usage of error prone patterns. | ||||||
| warnings.simplefilter("error", RuntimeWarning) | warnings.simplefilter("error", RuntimeWarning) | ||||||
| # Ignore known warnings in test dependencies. | # Ignore known warnings in test dependencies. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user