Revert "PLAT-1858 Better capture of deprecation warnings"

This commit is contained in:
Jeremy Bowman
2017-12-18 21:18:02 -05:00
committed by GitHub
parent 5e2c3e4bf5
commit 1dbdee9c54
12 changed files with 30 additions and 58 deletions

View File

@@ -21,6 +21,7 @@ sessions. Assumes structure:
from .common import *
import os
from path import Path as path
from warnings import filterwarnings, simplefilter
from uuid import uuid4
from util.db import NoOpMigrationModules
from openedx.core.lib.derived import derive_settings
@@ -174,6 +175,15 @@ CACHES = {
},
}
# hide ratelimit warnings while running tests
filterwarnings('ignore', message='No request passed to the backend, unable to rate-limit')
# Ignore deprecation warnings (so we don't clutter Jenkins builds/production)
# https://docs.python.org/2/library/warnings.html#the-warnings-filter
# Change to "default" to see the first instance of each hit
# or "error" to convert all into errors
simplefilter('ignore')
################################# CELERY ######################################
CELERY_ALWAYS_EAGER = True