summaryrefslogtreecommitdiff
path: root/unittest_utils.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-11 13:33:24 -0800
committerScott <[email protected]>2022-01-11 13:33:24 -0800
commitb454ad295eb3024a238d32bf2aef1ebc3c496b44 (patch)
tree89368a7cdad571da9e2c7297190fdce48eb3feb9 /unittest_utils.py
parentd2478310649d51e14f8ece57651ca9d925d98793 (diff)
Start using warnings from stdlib.
Diffstat (limited to 'unittest_utils.py')
-rw-r--r--unittest_utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest_utils.py b/unittest_utils.py
index bb1a9b4..270e20d 100644
--- a/unittest_utils.py
+++ b/unittest_utils.py
@@ -18,6 +18,7 @@ import time
import tempfile
from typing import Callable
import unittest
+import warnings
import bootstrap
import config
@@ -78,7 +79,9 @@ 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)
+ warnings.warn(msg)
perfdb = {}
# This is a unique identifier for a test: filepath!function