"Fix" a flaky test and cleanup an unused import.
[python_utils.git] / unittest_utils.py
index bb1a9b432f49d7886b99f39418339e9f62e0cee1..8c9a1202f99d46708b8abfd083fc3f57256fcacc 100644 (file)
@@ -78,7 +78,8 @@ def check_method_for_perf_regressions(func: Callable) -> Callable:
             perfdb = load_known_test_performance_characteristics()
         except Exception as e:
             logger.exception(e)
-            logger.warning(f'Unable to load perfdb from {_db}')
+            msg = f'Unable to load perfdb from {_db}'
+            logger.warning(msg)
             perfdb = {}
 
         # This is a unique identifier for a test: filepath!function