From 164448a7268875bc0f65c7e60c67ddb0623fb3b7 Mon Sep 17 00:00:00 2001 From: Mattia Tadini Date: Sat, 14 Nov 2026 19:37:49 +0100 Subject: [PATCH] tests: drop a repeated import of pathlib in test_hub.py pathlib is imported at the top of the module; the second import inside test_the_warning_says_it_is_unsigned() was flagged by CodeQL as py/repeated-import (alert #538). --- tests/test_hub.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_hub.py b/tests/test_hub.py index 480309dd..da1a6824 100644 --- a/tests/test_hub.py +++ b/tests/test_hub.py @@ -205,7 +205,6 @@ def test_the_warning_says_it_is_unsigned(): whoever gave it to them. That sentence is the whole difference between installing from the Hub and installing something found lying around. """ - import pathlib hubsrc = (pathlib.Path(__file__).resolve().parents[1] / "apps" / "hub" / "skillfish-hub").read_text(encoding="utf-8") assert "def avviso_bersaglio" in hubsrc