From 58042d4270d056f15417ecc5b9e4f7d8a2aeb183 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 20 Dec 2024 01:51:16 -0800 Subject: [PATCH] Resolve new ruff error. --- tests/test_class_sh_disowning.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_class_sh_disowning.py b/tests/test_class_sh_disowning.py index b23a685159..95fd30c556 100644 --- a/tests/test_class_sh_disowning.py +++ b/tests/test_class_sh_disowning.py @@ -60,10 +60,8 @@ def test_mixed(): assert is_disowned_results.count(True) == 1 if first_pass: first_pass = False - print( - "\nC++ function argument %d is evaluated first." - % (is_disowned_results.index(True) + 1) - ) + ix = is_disowned_results.index(True) + 1 + print(f"\nC++ function argument {ix} is evaluated first.") return # Comment out for manual leak checking (use `top` command).