You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "kojiromike (via GitHub)" <gi...@apache.org> on 2023/08/17 01:46:55 UTC
[GitHub] [avro] kojiromike commented on a diff in pull request #2444: AVRO-3832: [Python] Make Python test work with Docker
kojiromike commented on code in PR #2444:
URL: https://github.com/apache/avro/pull/2444#discussion_r1296590217
##########
lang/py/avro/test/gen_interop_data.py:
##########
@@ -73,6 +73,7 @@ def generate(schema_file: TextIO, output_path: IO) -> None:
continue
base, ext = os.path.splitext(output_path.name)
Path(f"{base}_{codec}{ext}").write_bytes(data)
+ output_path.close()
Review Comment:
This should probably be in `finally` or `with closing()`
https://docs.python.org/3/library/contextlib.html#contextlib.closing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org