From 54f3e69fdca89491fa64f32b2b585b4e5847bf74 Mon Sep 17 00:00:00 2001 From: Nadav Har'El Date: Mon, 15 Dec 2025 16:05:05 +0200 Subject: [PATCH] Fix for Statement has no effect This problem and its fix was suggested by copilot, I'm just writing the cover letter. test/nodetool/test_status.py has the silly statement tokens == "?" which has no effect. Looking around the code suggested to me (and also to Copilot, nice) that the correct intent was assert tokens == "?" and not, say, tokens = "?". Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Closes scylladb/scylladb#27659 --- test/nodetool/test_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nodetool/test_status.py b/test/nodetool/test_status.py index 14f98210c3..5d00dcf061 100644 --- a/test/nodetool/test_status.py +++ b/test/nodetool/test_status.py @@ -109,7 +109,7 @@ def validate_status_output(res, keyspace, nodes, ownership, resolve, effective_o assert load_unit is not None assert load == "{:.2f}".format(int(node.load) / load_multiplier[load_unit]) if token_count_unknown: - tokens == "?" + assert tokens == "?" else: assert int(tokens) == len(node.tokens) if effective_ownership_unknown: