diff --git a/openedx/core/lib/logsettings.py b/openedx/core/lib/logsettings.py index 8a03cb77f2..0d3a591326 100644 --- a/openedx/core/lib/logsettings.py +++ b/openedx/core/lib/logsettings.py @@ -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