summaryrefslogtreecommitdiff
path: root/unittest_utils.py
diff options
context:
space:
mode:
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