Skip to content

Commit

Permalink
Avoid using variable named file, it collides with build-in 'file'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfratrik committed Mar 25, 2024
1 parent 52d3f60 commit f0527fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f0527fc

Please sign in to comment.