mirror of
https://github.com/scummvm/dockerized-bb.git
synced 2026-06-20 05:46:00 +00:00
BUILDBOT: Make DeprecationWarnings visible
This allows to more easily detect breakage signs.
This commit is contained in:
@@ -12,6 +12,10 @@ import importlib
|
||||
module_path = os.path.dirname(__file__)
|
||||
sys.path.insert(0, module_path)
|
||||
|
||||
# Make DeperecationWarnings visible in our code
|
||||
import warnings
|
||||
warnings.filterwarnings('default', category=DeprecationWarning, module=r'(config|workers|builds|platforms|ui|utils\..*)')
|
||||
|
||||
def refresh(directory):
|
||||
for module in list(sys.modules.values()):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user