mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
[1.9.x] Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Backport of 1c5f4e86bc from master
This commit is contained in:
@@ -27,6 +27,8 @@ from django.utils.log import DEFAULT_LOGGING
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango110Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango20Warning)
|
||||
# Make runtime warning errors to ensure no usage of error prone patterns.
|
||||
warnings.simplefilter("error", RuntimeWarning)
|
||||
# Ignore known warnings in test dependencies.
|
||||
warnings.filterwarnings("ignore", "'U' mode is deprecated", DeprecationWarning, module='docutils.io')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user