From de4dc3b30fdb1d2b96850ef0d7fc19de1ad1876b Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Sat, 26 Oct 2024 17:10:24 +0800 Subject: [PATCH] include current time in err msg --- tests/performance/test_import_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/performance/test_import_time.py b/tests/performance/test_import_time.py index 03ce60ef5f7..c33381fbf48 100644 --- a/tests/performance/test_import_time.py +++ b/tests/performance/test_import_time.py @@ -91,7 +91,7 @@ def test_import_time(grace_percent: float = 0.20, hard_percent: float = 0.50) -> if current_time > grace_threshold: if current_time > hard_threshold: - pytest.fail(f"{module_import_cmd} import too slow! {hard_threshold=:.2f} ms") + pytest.fail(f"{module_import_cmd} import too slow at {current_time:.2f} ms! {hard_threshold=:.2f} ms") else: warnings.warn( f"{module_import_cmd} import slightly slower than reference: {grace_threshold=:.2f} ms",