mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Conflicts:
tests/apps/tests.py
tests/migrations/test_graph.py
tests/queryset_pickle/tests.py
tests/runtests.py
Backport of 1c5f4e86bc from master
This commit is contained in:
@@ -23,6 +23,8 @@ from django.utils.deprecation import (
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango19Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango110Warning)
|
||||
# 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