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():