mirror of
https://github.com/django/django.git
synced 2025-08-18 17:50:58 +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:
parent
cfa3d4a256
commit
ef78aec222
6 changed files with 19 additions and 34 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue