From 55a3172e37855f388b9ba0dfc91641a6c9ad1376 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 12 Jan 2022 09:06:29 -0800 Subject: Scale back warnings.warn and add stacklevels= where appropriate. --- unittest_utils.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'unittest_utils.py') diff --git a/unittest_utils.py b/unittest_utils.py index 270e20d..8c9a120 100644 --- a/unittest_utils.py +++ b/unittest_utils.py @@ -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 -- cgit v1.3