BOM-2477: pylint warnings lint-amnesty (#27585)
This commit is contained in:
@@ -720,7 +720,7 @@ class ExportTestCase(CourseTestCase):
|
||||
resp_content += item
|
||||
|
||||
buff = BytesIO(resp_content)
|
||||
return tarfile.open(fileobj=buff)
|
||||
return tarfile.open(fileobj=buff) # lint-amnesty, pylint: disable=consider-using-with
|
||||
|
||||
def _verify_export_succeeded(self, resp):
|
||||
""" Export success helper method. """
|
||||
|
||||
@@ -183,7 +183,7 @@ class TestUploadTranscripts(BaseTranscripts):
|
||||
"""
|
||||
Setup a transcript file with suffix and content.
|
||||
"""
|
||||
transcript_file = tempfile.NamedTemporaryFile(suffix=suffix)
|
||||
transcript_file = tempfile.NamedTemporaryFile(suffix=suffix) # lint-amnesty, pylint: disable=consider-using-with
|
||||
wrapped_content = textwrap.dedent(content)
|
||||
if include_bom:
|
||||
wrapped_content = wrapped_content.encode('utf-8-sig')
|
||||
|
||||
Reference in New Issue
Block a user