From 407b2ef93addee8cebc5ef0aca88ebb8525a8805 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 23 Mar 2024 10:40:41 +0100 Subject: [PATCH] Ignore pylint warnings for construct that does not work with Python 2. --- tests/unit/compat/mock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/compat/mock.py b/tests/unit/compat/mock.py index bdbea945..9a0a3c7e 100644 --- a/tests/unit/compat/mock.py +++ b/tests/unit/compat/mock.py @@ -51,7 +51,7 @@ def _iterate_read_data(read_data): # newline that our naive format() added data_as_list[-1] = data_as_list[-1][:-1] - for line in data_as_list: + for line in data_as_list: # pylint: disable=use-yield-from yield line def mock_open(mock=None, read_data=''): @@ -80,7 +80,7 @@ def _readline_side_effect(): if handle.readline.return_value is not None: while True: yield handle.readline.return_value - for line in _data: + for line in _data: # pylint: disable=use-yield-from yield line global file_spec