Scale back warnings.warn and add stacklevels= where appropriate.
[python_utils.git] / unittest_utils.py
index 270e20d1e268112f543ac70d4e096745b1861d1c..8c9a1202f99d46708b8abfd083fc3f57256fcacc 100644 (file)
@@ -18,7 +18,6 @@ import time
 import tempfile
 from typing import Callable
 import unittest
-import warnings
 
 import bootstrap
 import config
@@ -81,7 +80,6 @@ def check_method_for_perf_regressions(func: Callable) -> Callable:
             logger.exception(e)
             msg = f'Unable to load perfdb from {_db}'
             logger.warning(msg)
-            warnings.warn(msg)
             perfdb = {}
 
         # This is a unique identifier for a test: filepath!function