Revert "PLAT-1858 Better capture of deprecation warnings"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user