mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #31233 -- Added "error" filter for RuntimeWarning during tests.
This commit is contained in:
parent
4c6ab1f2aa
commit
2905b41670
@ -38,7 +38,9 @@ else:
|
||||
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango40Warning)
|
||||
# Make runtime warning errors to ensure no usage of error prone patterns.
|
||||
# Make resource and runtime warning errors to ensure no usage of error prone
|
||||
# patterns.
|
||||
warnings.simplefilter("error", ResourceWarning)
|
||||
warnings.simplefilter("error", RuntimeWarning)
|
||||
# Ignore known warnings in test dependencies.
|
||||
warnings.filterwarnings("ignore", "'U' mode is deprecated", DeprecationWarning, module='docutils.io')
|
||||
|
Loading…
Reference in New Issue
Block a user