Skip to content

Commit 58042d4

Browse files
committed
Resolve new ruff error.
1 parent 4629fbc commit 58042d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_class_sh_disowning.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ def test_mixed():
6060
assert is_disowned_results.count(True) == 1
6161
if first_pass:
6262
first_pass = False
63-
print(
64-
"\nC++ function argument %d is evaluated first."
65-
% (is_disowned_results.index(True) + 1)
66-
)
63+
ix = is_disowned_results.index(True) + 1
64+
print(f"\nC++ function argument {ix} is evaluated first.")
6765

6866
return # Comment out for manual leak checking (use `top` command).
6967

0 commit comments

Comments
 (0)