From 13f1e9ed9385e3213176a1da87ed6ffbede61e2c Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Tue, 10 Nov 2026 19:32:38 +0100 Subject: [PATCH] Fix pylint shadowed tcx in webdav test Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWXcjiPpgRfxzrRfoky --- screen_locker/tests/test_runnerup_webdav_source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screen_locker/tests/test_runnerup_webdav_source.py b/screen_locker/tests/test_runnerup_webdav_source.py index 9757c30..cbba39e 100644 --- a/screen_locker/tests/test_runnerup_webdav_source.py +++ b/screen_locker/tests/test_runnerup_webdav_source.py @@ -176,11 +176,11 @@ class TestLocalVerifyAndParse: ) -> None: """A path that exists locally is parsed without any adb pull.""" locker = create_locker(mock_tk, tmp_path) - tcx = tmp_path / "run.tcx" - tcx.write_text(_TCX) + tcx_file = tmp_path / "run.tcx" + tcx_file.write_text(_TCX) object.__setattr__(locker, "_run_adb", MagicMock()) - data = locker._pull_and_parse_tcx(str(tcx)) + data = locker._pull_and_parse_tcx(str(tcx_file)) assert data is not None assert data["distance_m"] == 5800.0