Skip to content

Commit

Permalink
include current time in err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Oct 26, 2024
1 parent abf5f8b commit de4dc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/performance/test_import_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit de4dc3b

Please sign in to comment.