From d8f7899479143087c364c9d8e77fa8d0f8e43422 Mon Sep 17 00:00:00 2001 From: Arda Coskun Date: Wed, 5 Mar 2025 16:25:20 +0300 Subject: [PATCH] Update test_leak.py --- python/scripts/test_leak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/scripts/test_leak.py b/python/scripts/test_leak.py index 86a87f5e742..88442df6b1b 100644 --- a/python/scripts/test_leak.py +++ b/python/scripts/test_leak.py @@ -44,8 +44,8 @@ def assert_does_not_leak(f, iterations=10, check_interval=1, tolerance=5): gc.collect() usage = memory_profiler.memory_usage()[0] diff = usage - baseline - print("\nMemory increased by {0} megabytes after {1} " - "iterations".format(diff, iterations)) + print(f"\nMemory increased by {diff} megabytes after {iterations} " + "iterations") def test_leak1():