Merge pull request #22757 from edx/ziafazal/ENT-2529
Ignore `ResourceWarning`
This commit is contained in:
@@ -122,6 +122,7 @@ def log_python_warnings():
|
||||
warnings.filterwarnings('ignore', 'Not importing directory ')
|
||||
warnings.filterwarnings('ignore', 'Setting _field_data is deprecated')
|
||||
warnings.filterwarnings('ignore', 'Setting _field_data via the constructor is deprecated')
|
||||
warnings.filterwarnings('ignore', '.*unclosed.*', category=ResourceWarning)
|
||||
try:
|
||||
# There are far too many of these deprecation warnings in startup to output for every management command;
|
||||
# suppress them until we've fixed at least the most common ones as reported by the test suite
|
||||
|
||||
Reference in New Issue
Block a user