1
0
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:
Simon Charette
2015-11-13 15:54:05 -05:00
parent cfa3d4a256
commit ef78aec222
6 changed files with 19 additions and 34 deletions

View File

@@ -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')