Add comment about deprecation warnings being shown by default

This commit is contained in:
Bruno Oliveira 2018-09-04 11:31:03 -03:00
parent c304998ed7
commit e9417be9df
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ def catch_warnings_for_item(config, ihook, item):
filters_configured = True
if not filters_configured:
# if user is not explicitly configuring warning filters, show deprecation warnings by default (#2908)
warnings.filterwarnings("always", category=DeprecationWarning)
warnings.filterwarnings("always", category=PendingDeprecationWarning)