From f0527fced10d7542fe47b77ff3fde3569359806e Mon Sep 17 00:00:00 2001 From: tomasfratrik Date: Mon, 25 Mar 2024 14:02:06 +0100 Subject: [PATCH] Avoid using variable named file, it collides with build-in 'file' --- .../actors/scansourcefiles/tests/unit_test_scansourcefiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/system_upgrade/common/actors/scansourcefiles/tests/unit_test_scansourcefiles.py b/repos/system_upgrade/common/actors/scansourcefiles/tests/unit_test_scansourcefiles.py index affc8d0243..def572b087 100644 --- a/repos/system_upgrade/common/actors/scansourcefiles/tests/unit_test_scansourcefiles.py +++ b/repos/system_upgrade/common/actors/scansourcefiles/tests/unit_test_scansourcefiles.py @@ -154,7 +154,7 @@ def test_version_file_with_common_file(monkeypatch, major_version, version_file_expected_output, common_file_expected_output): def scan_files_mocked(*args, **kwargs): files = TRACKED_FILES_MOCKED['common'] + TRACKED_FILES_MOCKED.get(major_version, []) - return [FileInfo(path=file, exists=False, rpm_name='', is_modified=False) for file in files] + return [FileInfo(path=file_, exists=False, rpm_name='', is_modified=False) for file_ in files] monkeypatch.setattr(api, 'produce', testutils.produce_mocked()) monkeypatch.setattr(api, 'current_logger', testutils.logger_mocked())