Skip to content

Commit

Permalink
Ignore pylint warnings for construct that does not work with Python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Mar 23, 2024
1 parent 2ea1fef commit 407b2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/compat/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=''):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 407b2ef

Please sign in to comment.